HTML Tutorial
Menu
HTML Forms
Menu
HTML Graphics
Menu
HTML Media
Menu
HTML API
Menu
Html Comments
HTML Comment Tags
Using the below syntax, you can add comments to your HTML source.
<!– Write your comments here –>
Add Comments
Comments can place notifications and reminders in the HTML code:
Example
This is a paragraph.
Output:
This is a paragraph.
Hide Contents
Comments are also useful if you want to hide the comment.
Hiding more than one line is also possible between the <!– and the –> will be hidden from the display.
Example
This is a paragraph.
This is a paragraph too.
Output:
This is a paragraph.
This is a paragraph too.
Hide Inline ContentComments can also hide the parts in the middle of the HTML code.