Which of the following form is correct to show a ‘comments’ in the HTML…
2024
Which of the following form is correct to show a ‘comments’ in the HTML language?
- A.
<-- This is a comment -->
- B.
<-- This is a comment -!>
- C.
<!-- This is a comment -!>
- D.
<!-- This is a comment -->
Attempted by 163 students.
Show answer & explanation
Correct answer: D
The correct HTML comment syntax begins with `<!--` and ends with `-->`. Therefore the valid form is `<!-- This is a comment -->`.