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.
![]() |
Standards information
- HTML 4.01 Specification, Section 3.2.4
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
Build date: 3/8/2012
