HTML CSS Reference/HTML Tag Reference/comment
Содержание
"comment" CSS Attributes and JavaScript Style Properties
Names noted with an asterisk (*) are JavaScript properties only.
+----------------+--------------------------------------------------------------+
| CSS |background-position-x background-position-y |
| Attributes |behavior pixelBottom(*) |
| and |pixelHeight(*) pixelLeft(*) |
| JavaScript |pixelRight(*) pixelTop(*) |
| Style |pixelWidth(*) posBottom(*) |
| Properties |posHeight(*) posLeft(*) |
| |posRight(*) posTop(*) |
| |posWidth(*) text-autospace |
| |text-underline-position |
+----------------+--------------------------------------------------------------+
"comment" Event Handlers
+----------------+--------------------------------------------------------------+
| Event |onPropertyChange onReadyStateChange |
+----------------+--------------------------------------------------------------+
"comment" Example
<html>
<head>
<title>comment element example</title>
</head>
<body>
<comment>This is a comment.</comment>
<p>This text is displayed on the page</p>
</body>
</html>
"comment" HTML Attributes
+----------------+--------------------------------------------------------------+
| HTML |data id |
| Attributes |lang |
+----------------+--------------------------------------------------------------+
"comment" JavaScript Collections
+----------------+--------------------------------------------------------------+
| JavaScript |attributes behaviorUrns |
| Collections |childNodes |
+----------------+--------------------------------------------------------------+
"comment" JavaScript Methods
+----------------+--------------------------------------------------------------+
| JavaScript |addBehavior appendChild |
| Methods |appendData applyElement |
| |attachEvent clearAttributes |
| |cloneNode componentFromPoint |
| |deleteData detachEvent |
| |dragDrop fireEvent |
| |getAdjacentText getAttribute |
| |getAttributeNode getBoundingClientRect |
| |getClientRects hasChildNodes |
| |insertAdjacentElement insertAdjacentHTML |
| |insertAdjacentText insertBefore |
| |insertData mergeAttributes |
| |normalize removeAttribute |
| |removeAttributeNode removeBehavior |
| |removeChild removeNode |
| |replaceAdjacentText replaceChild |
| |replaceData replaceNode |
| |scrollIntoView setAttribute |
| |setAttributeNode substringData |
| |swapNode |
+----------------+--------------------------------------------------------------+
"comment" JavaScript Properties
+----------------+--------------------------------------------------------------+
| JavaScript |canHaveChildren canHaveHTML |
| Properties |data disabled |
| |firstChild id |
| |isContentEditable isDisabled |
| |isMultiLine isTextEdit |
| |lang lastChild |
| |length nextSibling |
| |nodeName nodeType |
| |nodeValue offsetParent |
| |outerText ownerDocument |
| |parentElement parentNode |
| |parentTextEdit previousSibling |
| |readyState scopeName |
| |sourceIndex tagName |
| |tagUrn text |
| |uniqueID |
+----------------+--------------------------------------------------------------+
"comment" Microsoft Behaviors
+----------------+--------------------------------------------------------------+
| Microsoft |clientCaps download |
| Behaviors |homePage |
+----------------+--------------------------------------------------------------+
"comment" Syntax and Note
Note:
Hides the text between its tags, which is the same as <!-- . . . -->.
Syntax:
<comment attributes events> . . . </comment>