HTML CSS Reference/HTML Tag Reference/comment

Материал из Web эксперт
Перейти к: навигация, поиск

"comment" CSS Attributes and JavaScript Style Properties

   <source lang="html4strict">

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 | +----------------+--------------------------------------------------------------+

     </source>
   
  


"comment" Event Handlers

   <source lang="html4strict">

+----------------+--------------------------------------------------------------+ | Event |onPropertyChange onReadyStateChange | +----------------+--------------------------------------------------------------+

     </source>
   
  


"comment" Example

   <source lang="html4strict">
   

<html> <head> <title>comment element example</title> </head> <body>

  <comment>This is a comment.</comment>

This text is displayed on the page

</body> </html>


     </source>
   
  


"comment" HTML Attributes

   <source lang="html4strict">

+----------------+--------------------------------------------------------------+ | HTML |data id | | Attributes |lang | +----------------+--------------------------------------------------------------+

     </source>
   
  


"comment" JavaScript Collections

   <source lang="html4strict">

+----------------+--------------------------------------------------------------+ | JavaScript |attributes behaviorUrns | | Collections |childNodes | +----------------+--------------------------------------------------------------+

     </source>
   
  


"comment" JavaScript Methods

   <source lang="html4strict">

+----------------+--------------------------------------------------------------+ | 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 | +----------------+--------------------------------------------------------------+

     </source>
   
  


"comment" JavaScript Properties

   <source lang="html4strict">

+----------------+--------------------------------------------------------------+ | 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 | +----------------+--------------------------------------------------------------+

     </source>
   
  


"comment" Microsoft Behaviors

   <source lang="html4strict">

+----------------+--------------------------------------------------------------+ | Microsoft |clientCaps download | | Behaviors |homePage | +----------------+--------------------------------------------------------------+

     </source>
   
  


"comment" Syntax and Note

   <source lang="html4strict">

Note: Hides the text between its tags, which is the same as .

Syntax:

<comment attributes events> . . . </comment>


     </source>