HTML CSS Reference/HTML Tag Reference/title

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

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



"title" Event Handlers

+----------------+--------------------------------------------------------------+
| Event          |onLayoutComplete                onReadyStateChange            |
+----------------+--------------------------------------------------------------+



"title" Example

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



"title" HTML Attributes

+----------------+--------------------------------------------------------------+
| HTML           |dir                             id                            |
| Attributes     |lang                                                          |
+----------------+--------------------------------------------------------------+



"title" JavaScript Collections

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



"title" JavaScript Methods

+----------------+--------------------------------------------------------------+
| JavaScript     |addBehavior                     appendChild                   |
| Methods        |applyElement                    attachEvent                   |
|                |clearAttributes                 cloneNode                     |
|                |componentFromPoint              contains                      |
|                |detachEvent                     dragDrop                      |
|                |fireEvent                       getAdjacentText               |
|                |getAttribute                    getAttributeNode              |
|                |getElementsByTagName            hasChildNodes                 |
|                |insertAdjacentElement           insertBefore                  |
|                |mergeAttributes                 normalize                     |
|                |removeAttribute                 removeAttributeNode           |
|                |removeBehavior                  removeChild                   |
|                |replaceAdjacentText             replaceChild                  |
|                |setAttribute                    setAttributeNode              |
|                |swapNode                                                      |
+----------------+--------------------------------------------------------------+



"title" JavaScript Properties

+----------------+--------------------------------------------------------------+
| JavaScript     |canHaveHTML                     className                     |
| Properties     |clientHeight                    clientWidth                   |
|                |dir                             disabled                      |
|                |firstChild                      id                            |
|                |innerHTML                       innerText                     |
|                |isContentEditable               isDisabled                    |
|                |isMultiLine                     isTextEdit                    |
|                |lang                            lastChild                     |
|                |nextSibling                     nodeName                      |
|                |nodeType                        nodeValue                     |
|                |offsetHeight                    offsetLeft                    |
|                |offsetParent                    offsetTop                     |
|                |offsetWidth                     ownerDocument                 |
|                |parentElement                   parentNode                    |
|                |parentTextEdit                  previousSibling               |
|                |readyState                      scopeName                     |
|                |scrollHeight                    scrollLeft                    |
|                |scrollTop                       scrollWidth                   |
|                |sourceIndex                     tagName                       |
|                |tagUrn                          text                          |
|                |title                           uniqueID                      |
+----------------+--------------------------------------------------------------+



"title" Microsoft Behaviors

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



"title" Syntax and Note

Note:
This element defines the title of a document. 
The <title> element must be located inside the <head> element.
    
Syntax:
    
<title attributes events> . . . </title>