HTML comments are used to insert notes or explanations within your HTML code. Comments are not displayed in the browser but are visible in the source code. They are useful for leaving notes to yourself or other developers, and for temporarily disabling code.
HTML comments are written using the following syntax:
<!-- This is a comment -->
Everything between <!--
and -->
is considered a comment and will not be rendered in the browser.
<!-- This is a single-line comment -->
<!--
This is a multi-line comment.
It can span multiple lines.
-->
<!-- <p>This paragraph is commented out and will not be displayed.</p> -->