HTML comment tag is used to put comments in HTML documents.
The comments are visible in source code and not in the browser.
Syntax
1 |
<!-- put your comment here... --> |
1 2 3 4 |
<!-- Included heading below comment using second level heading tag --> <h2>This is the main heading</h2> <!-- A paragraph tag is used to show content in HTML --> <p>This is the paragraph content</p> |
Output
This is the main heading
This is the paragraph content
Resources and References HTML comment tag
1. W3C Specification.
2. HTML living standard
3. W3C project using Github