HTML Comments

Comment tags are used to insert comments in the HTML source code. Comments are not displayed by the browser, but they can help document your HTML source code.

HTML Comment Tag

Comments can be added to the HTML source by using the following syntax.

<!– Put your comments here –>

With comments you can add reminders and explanations in your HTML source. They can also be used for debugging HTML by commenting html lines one by one to search for errors.

HTML Comment Tag Example

<!– This is first comment –>

<p>My Paragraph.</p>

<!– This is another comment –>