Including Comments in HTML

Q

How can I include comments in HTML?

✍: FYIcenter

A

An HTML comment begins with "<!--", ends with "-->", and does not contain "--" or ">" anywhere in the comment. Do not put comments inside tags (i.e., between "<" and ">") in HTML markup. The following are examples of HTML comments:

   <!-- This is a comment. -->
   <!-- This is another comment,
   and it continues onto a second line. -->
   <!---->

2007-03-03, 8697👍, 0💬