HTML comment tag | HTML comment examples | HTML comment code generator
<!-- This is an HTML comment -->
Comment open delimiter:
<!--
Comment close delimiter:
-->
Use informative text comments when you want to add explanations to the code.
The HTML code:
<!-- this is a single line comment -->
<p> some text ... </p>
<!--
this is
a multiline
comment
-->
<p> some more text ... </p>
The result page view:
some text ...
some more text ...
Use code commenting when you want to keep the code inactive.
The HTML code:
<!-- <p> some text ... </p> -->
<!--
<p> some text ... </p>
<p> some text ... </p>
-->
<p> some more text ... </p>
The result page view:
some more text ...