HTML Comment Tag Example

HTML Code:

<h2>This is visible text</h2>

<!-- This is a comment. It will not be shown in the browser. -->

<p>This is a paragraph.</p>

<!--
<p>This is hidden because it is inside a comment.</p>
-->
  

Output in Browser:

This is visible text

This is a paragraph.

Note: Comments are only visible in the HTML code. Right-click > View Page Source to see them.