HTML comments are not executable in the browser, but they can help programmers to help understand code.


Syntax:

<!-- write anything browser will ignore -->

Example:

<!-- This is a comment -->
<p>This is a paragraph.</p>
<!-- only we can read but browser will not execute -->

<!-- you can comment any html element -->
<!-- <p>This is a paragraph.</p> -->

output:

This is a paragraph.