Multiple choice general knowledge

Which of the following tags can be used to create a comment in HTML?

  1. < !-- comment -->

  2. < ! comment >

  3. #comment

  4. < !-------comment-->

Reveal answer Fill a bubble to check yourself
A,D Correct answer
Explanation

HTML comments are created using the syntax . Option A shows this correctly. Option D shows an extended comment with multiple hyphens which is also valid. Options B and C are incorrect HTML comment syntax.