Login With Github

HTML Comments

The comment tag allows you to add some comments in HTML documents.

HTML Comment Tag Syntax

The syntax of HTML comment tag is relatively complex. The following is the only way to write HTML comments:

<!-- This is the common html comment -->

Note:Notice that there is an exclamation point (!) in the opening tag, but not in the closing tag.

With comments you can place notifications and reminders in your HTML:

<!-- This is a comment -->

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

<!-- Remember to add more information here -->

Comments are also great for debugging HTML, because you can comment out HTML lines of code, one at a time, to search for errors:

<!-- Do not display this at the moment

<a href="http://www.google.com" title="this is the google link">

-->

0 Comment

temp