NOTICE: This website is no longer updated or supported - as such many of the techniques used to build it may seem antiquated in the modern day. It is preserved for historical reasons only.

HTML XHTML The Complete Reference
home » reference » appendix a » html element reference

<comment> (Comment Information)

This nonstandard element treats enclosed text as nondisplaying comments while processing enclosed HTML. This element should not be used.

Syntax Defined by Internet Explorer

id="unique alphanumeric identifier"
lang="language code"
title="advisory text">


Events Defined by Internet Explorer

onpropertychange, onreadystatechange

Element Specific Attributes

References a URL that contains the comment information.


<comment>This is not the proper way to form


No standards
Internet Explorer 4, 5, 5.5, 6


It is better to use the <!--. . .--> element, an alternate comment element that does not process enclosed HTML in all specification-conforming browsers.

Because the <comment> element is not supported by all browsers, commented text done in this fashion will appear in Netscape browsers. Although Internet Explorer still supports this element, IE documentation recommends use of the <!--. . .--> element.

(X)HTML Elements
CSS Properties
Previous: comment Next: dd
< Home | About | Chapters | Examples | Errata | Reference | Site Map >