HTML Comments
HTML comments are not displayed in the browser, but they can help document your HTML source code.
HTML Comment Tag
You can add comments to your HTML source by using the following syntax:
<!-- Write your comments here -->
Notice that there is an exclamation point (!) in the start tag, but not in the end tag.
Add Comments
With comments you can place notifications and reminders in your HTML code:
Comments Example
Result
Hide Content
Comments can be used to hide content. This can be helpful if you hide content temporarily:
Hide Content Example
Result