EN
このコンテンツは設定された言語で表示できません。英語版のページが表示されます。

HTML Comment object

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

HTML 4.01 Specification, Section 3.2.4

 

DOM Information

Inheritance Hierarchy

 Node
   HTML Comment

Members

The HTML Comment object has these types of members:

Properties

The HTML Comment object has these properties.

PropertyDescription

text

Retrieves or sets the text of the object as a string.

 

Standards information

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

 

 

表示:
© 2014 Microsoft