<COMMENT> element can be used to 'comment' out text. As such, it is similar to the
<!-- ... --> element.
Any text placed between the
</COMMENT> elements will not render on the screen, allowing comments to be placed in HTML documents.
<COMMENT>This text won't render.
I can say what I like here,
it wont appear</COMMENT>
Would not render on the screen.
NOTE : This element is only supported by the Internet Explorer and Mosaic.
The Internet Explorer 4.0 (and above) specific
TITLE attribute is used for informational purposes. For the
<COMMENT> element, the
TITLE attribute maybe useful for providing information to authors.
LANG attribute can be used to specify what language the
<COMMENT> element is using. It accepts any valid ISO standard language abbreviation (for example
"en" for English,
"de" for German etc.) For more details, see the Document Localisation section for more details.
ID="Unique element identifier"
ID attribute can be used to either reference a unique style sheet identifier, or to provide a unique name for the
<COMMENT> element for scripting purposes. Any
<COMMENT> element with an
ID attribute can be directly manipulated in script by referencing its
ID attribute, rather than working through the All collection to determine the element. See the Scripting introduction topic for more information.
<COMMENT> element in a document is an object that can be manipulated through scripting. Note that scripting of the
<COMMENT> element/object is only supported by Internet Explorer 4.0 in its Dynamic HTML object model. Netscape does not support direct scripting of the
<COMMENT> element at all.
<COMMENT...> element/object supports some of the standard Dynamic HTML properties (i.e. document, id, isTextEdit, lang, parentElement, parentTextEdit, sourceIndex, tagName and title). Details of these can be found in the standard Dynamic HTML properties topics.
<COMMENT...> element/object supports some of the standard Dynamic HTML methods (i.e. click, contains, getAttribute, removeAttribute, and setAttribute). Details of these can be found in the standard Dynamic HTML Methods topics.
<COMMENT...> element/object supports no events.
© 1995-1998, Stephen Le Hunte