To include comments in an HTML document that will be ignored by the HTML
user agent, surround them with <!--
and
-->
. After the comment delimiter, all text up to the next
occurrence of --> is ignored. Hence comments cannot be nested. White space
is allowed between the closing -- and >, but not between the opening <!
and --. Comments can be used anywhere within an HTML document and are generally
used as markers to improve the readability of complex HTML documents.
For example:
<HEAD>
<TITLE>The HTML Reference Library</TITLE>
<!-- First created by Stephen Le Hunte, March 1995
-->
</HEAD>
NOTE: Some browsers incorrectly consider a > sign to terminate a comment.
© 1995-1998, Stephen Le Hunte
Questions:
file: /Techref/language/html/ib/Text_Formatting/comment.htm, 1KB, , updated: 2021/5/6 13:36, local time: 2024/12/25 12:58,
18.222.98.91:LOG IN
|
©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://techref.massmind.org/techref/language/html/ib/Text_Formatting/comment.htm"> <!-- ... --></A> |
Did you find what you needed? |
Welcome to massmind.org! |
Welcome to techref.massmind.org! |
.