When writing in HTML, the <!--comment--> tag is used to write remarks into the source code. HTML comments can be useful for explaining code while not being displayed or read by the browser. The following sections contain information about this tag, including an example of it in use and browser compatibility.
Example of a comment in HTML
<p>Hey, I'm a paragraph with some text in me.</p> <!-- And I'm a comment about the paragraph that's only visible in source code.-->
Hey, I'm a paragraph with some text in me.
|All versions||All versions||All versions||All versions||All versions|