HTML comment tag

HTML comments start with < !-- tag and end with -- > tag.

<!-- Sample HTML comment -->

Comments are not displayed in the web browsers. Any HTML elements that are encapsulated inside of the comment tags will be ignored by the web browsers. Comments will help the author or visitor to describe and explain the HTML code, who visited the HTML source code.

html-comments

HTML Source Code :

<html> <body> Single line comment <!-- This is single line comment --> <br> Multi line comment <!-- Multi line comment --> </body> </html>

HTML multiple line comments are also the same syntax. HTML dont allow nested comments , that is, a comment inside another comment.