HTML Comment object (Internet Explorer)

Switch View :
ScriptFree
HTML Comment object

[This documentation is preliminary and is subject to change.]

Prevents any enclosed text or HTML source code from being parsed and displayed.

HTML 4.01 Specification, Section 3.2.4

Standards information

DOM Information

Inheritance Hierarchy

 Node
    HTML Comment
 CharacterData
    HTML Comment

Remarks

Comments can contain other HTML elements. Comments do not nest.

Start and end tags are required.

Examples

The following is an example of an HTML Comment.


<!-- This text will not appear in the browser window. -->

See also

comment

 

 

Build date: 3/8/2012

Community Content

yecril
tagName
tagName of a HTML comment element is "!".  This is inconsistent with W3C DOM.