HTML Comment

If you want to explain the written HTML code, you must place it in the comment tag. Comments are not displayed in the web browser.



If you want to explain the written HTML code, you must place it in the comment tag.

<!-- Comments here ... -->

Comments are not displayed in the web browser.
Comments are only used for web developer.
If your HTML code is complicated and enlarged, it's best to explain them using the comment element.
This makes it possible to remember everything about the code later when you go back to the code.

Comment element differs from other HTML elements.

<!-- this is my first paragraph -->
<p>Comments are not displayed in the web browser</p>
<!-- this is a bold text -->
<b>Comments are only used for web developer.</b>

View in Code Editor

<< : HTML Heading HTML Style : >>