HTML CSS Reference/HTML Tag Reference/link

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

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



"link" Event Handlers

+----------------+--------------------------------------------------------------+
| Event          |onLoad                          onReadyStateChange            |
+----------------+--------------------------------------------------------------+



"link" Example

<html>
<head>
<title>link element example</title>
<link rel="stylesheet" href="http://www.wbex.ru/style/jss.css" type="text/css">
</head>
<body>This text will have the font specified in myStyleSheet </body>
</html>



"link" HTML Attributes

+----------------+--------------------------------------------------------------+
| HTML           |charset                         dir                           |
| Attributes     |href                            hreflang                      |
|                |id                              lang                          |
|                |media                           name                          |
|                |rel                             rev                           |
|                |style                           target                        |
|                |title                           type                          |
+----------------+--------------------------------------------------------------+



"link" JavaScript Collections

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



"link" JavaScript Methods

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



"link" JavaScript Properties

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



"link" Microsoft Behaviors

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



"link" Syntax and Note

Note:
This element defines the relationship between the current page and external documents. 
It is commonly used to link external style sheets.
It is usually placed in the <head> section of the page.
    
Syntax:
    
<link attributes events>