The <COMMENT>
element can be used to 'comment' out text. As such, it is similar to the <!-- ... -->
element.
Any text placed between the <COMMENT>
and </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.
TITLE="informational ToolTip"
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="language setting"
The 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"
The 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.
Every <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...>
Properties
The <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...>
Methods
The <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...>
Events
The <COMMENT...>
element/object supports no events.
© 1995-1998, Stephen Le Hunte
file: /Techref/language/html/ib/Text_Formatting/comm.htm, 4KB, , updated: 2004/3/1 15:05, local time: 2024/12/25 13:14,
3.139.234.68: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/comm.htm"> <COMMENT></A> |
Did you find what you needed? |
Welcome to massmind.org! |
Welcome to techref.massmind.org! |
.