From http://www.w3schools.com (Copyright Refsnes Data)
This element defines the relationship between two linked documents.
Some HTML 4.01 attributes are no longer supported.
Note: The link element is an empty element, it contains attributes only.
Note: This element goes only in the head section, but it can appear any number of times.
| How to use the <link> tag to link to an external style sheet:
<head> |
| Attribute | Value | Description | 4 | 5 | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| charset | charset | Defines the character encoding of the target URL. Default value is "ISO-8859-1". Not supported | 4 | |||||||||||||||||||
| href | URL | The target URL of the resource | 4 | 5 | ||||||||||||||||||
| hreflang | language_code | Defines the base language of the target URL | 4 | 5 | ||||||||||||||||||
| media | screen tty tv projection handheld braille aural all |
Specifies on what device the document will be displayed
|
4 | 5 | ||||||||||||||||||
| rel | alternate appendix bookmark chapter contents copyright glossary help home index next prev section start stylesheet subsection |
Defines the relationship between the current document and the targeted document | 4 | 5 | ||||||||||||||||||
| rev | alternate appendix bookmark chapter contents copyright glossary help home index next prev section start stylesheet subsection |
Defines the relationship between the targeted document and the current document | 4 | |||||||||||||||||||
| target | _blank _self _top _parent |
Where to open the target URL.
|
4 | |||||||||||||||||||
| type | MIME_type like: text/css text/javascript image/gif |
Specifies the MIME type of the target URL | 4 | 5 |
| class, contenteditable, contextmenu, dir, draggable, id, irrelevant, lang, ref, registrationmark, tabindex, template, title |
For a full description, go to Standard Attributes in HTML 5.
| onabort, onbeforeunload, onblur, onchange, onclick, oncontextmenu, ondblclick, ondrag, ondragend, ondragenter, ondragleave, ondragover, ondragstart, ondrop, onerror, onfocus, onkeydown, onkeypress, onkeyup, onload, onmessage, onmousedown, onmousemove, onmouseover, onmouseout, onmouseup, onmousewheel, onresize, onscroll, onselect, onsubmit, onunload |
For a full description, go to Event Attributes in HTML 5.
Link to an external style sheet
How to use the <link> tag to link to an external style
sheet.
From http://www.w3schools.com (Copyright Refsnes Data)