You are currently using a web browser that does not support HTML 5 with style sheets. Please try the standard HTML 5, XHTML 1 or XHTML 1 Mobile version of this page instead.

Comments in HTML

Comments in HTML 5

Comments in HTML start with the characters <!-- and end with -->. The body of the comment should not include any sequence of -- (double hyphens). Any text, scripts or HTML code within comments will be ignored.

Converting to HTML 5

We are working on converting to HTML 5. Please visit HTML Comments on the HTML 5 standard version of this site.

HTML Comments Syntax

Syntax of HTML Comments

HTML 5 Examples

Examples of comments in HTML 5

<!-- This will be ignored - - it's a comment! -->
<!--
<script ...>
window.onload="This won't happen."
</script>
-->
Changes in HTML 5

What's new in HTML 5

Differences between HTML 5 and earlier versions

Last updated Sunday September 19, 2010


Printer-friendly PDF* format:

HTML Comments

You are currently viewing this page in HTML 5 Style Sheet* format (* see Clicklets for more infomation). This document is also available in HTML 5 XML*HTML 5 non-XML*XHTML 1 Style Sheet*XHTML 1*XML* HTML 4* XHTML Mobile* WML Mobile* and printer-friendly PDF* formats. This is accomplished with Single Source Publishing, a content management system that uses templates in XSLT style sheets provided by XML Styles .com to transform the source content for various content delivery channels. There is also RDF* metadata that describes the content of this document.