
The Complete Idiot's HTML Tag Reference
| Index
| Previous Tag: <LI>
| Next Tag: <LISTING>
|
<LINK>
Sets up a link between the current page and some other resource (such as a style sheet).
Support:
-
Notes:
- This tag requires the </LINK> end tag.
Attributes:
- CHARSET
= "Text"
The character set used by the linked resource.
-
Support:
-
HTML Standard | Internet Explorer | Netscape Navigator |
4.0 and later |
Not supported |
Not supported |
Notes:
- CLASS
= "Text"
The style sheet class used by the tag.
-
Support:
-
HTML Standard | Internet Explorer | Netscape Navigator |
4.0 and later |
Not supported |
Not supported |
Notes:
-
You can specify two or more classes; be sure to separate each class name with a space.
- DISABLED
Disables the link to the other resource..
-
Support:
-
HTML Standard | Internet Explorer | Netscape Navigator |
Not supported |
4.0 and later |
Not supported |
- HREF
= "Text"
The file name or full URL of the linked resource.
-
Support:
-
HTML Standard | Internet Explorer | Netscape Navigator |
2.0 and later |
3.0 and later |
4.0 and later |
- HREFLANG
= "Text"
The language used by the linked resource.
-
Support:
-
HTML Standard | Internet Explorer | Netscape Navigator |
4.0 and later |
Not supported |
Not supported |
Notes:
- ID
= "Text"
An alphanumeric string that uniquely identifies the tag.
-
Support:
-
HTML Standard | Internet Explorer | Netscape Navigator |
4.0 and later |
4.0 and later |
Not supported |
Notes:
-
Although you can use letters and numbers for the ID, the first character must be a letter.
- LANG
= "Text"
The language used by the tag's attribute values and text content.
-
Support:
-
HTML Standard | Internet Explorer | Netscape Navigator |
4.0 and later |
Not supported |
Not supported |
- MEDIA
= "Text"
Determines the intended destination if the linked resource is a style sheet.
-
Support:
-
HTML Standard | Internet Explorer | Netscape Navigator |
4.0 and later |
4.0 and later |
Not supported |
Notes:
-
Possible values: SCREEN, PRINT, PROJECTION, BRAILLE, SPEECH, ALL.
- REL
= "Text"
The relationship between the current page and the resource specified by the HREF attribute.
-
Support:
-
HTML Standard | Internet Explorer | Netscape Navigator |
2.0 and later |
3.0 and later |
4.0 and later |
Notes:
- REV
= "Text"
The relationship between the resource specified by the HREF attribute and the current page.
-
Support:
-
HTML Standard | Internet Explorer | Netscape Navigator |
2.0 and later |
4.0 and later |
Not supported |
Notes:
-
This is the opposite of the REL attribute.
- SRC
= "Text"
The URL of a downloadable font definition file.
-
Support:
-
HTML Standard | Internet Explorer | Netscape Navigator |
Not supported |
Not supported |
4.0 and later |
- STYLE
= "Text"
The style or styles to use with the tag.
-
Support:
-
HTML Standard | Internet Explorer | Netscape Navigator |
4.0 and later |
Not supported |
Not supported |
Notes:
-
If you enter multiple style properties, separate each one with a semi-colon (;).
- TARGET
= "Text"
The name of the frame in which the linked resource should appear.
-
Support:
-
HTML Standard | Internet Explorer | Netscape Navigator |
4.0 and later |
Not supported |
Not supported |
Notes:
-
HTML recognizes three pre-fab TARGET names:
_self |
Loads the new page in the same frame that contains the link. |
_top |
Loads the new page into the entire window (it breaks out of the frame structure). |
_blank |
Loads the new page into a new browser window. |
Note that you can also open a page into a new browser window just by using a TARGET value that the browser doesn't recognize.
- TYPE
= "Text"
The content type of the linked resource.
-
Support:
-
HTML Standard | Internet Explorer | Netscape Navigator |
4.0 and later |
3.0 and later |
Not supported |
Notes:
-
Use "text/css" for a style sheet; use "text/javascript" for an external JavaScript file.
Example:
<HEAD>
<LINK REL="STYLESHEET" HREF="MyStyles.css" TYPE="text/css">
</HEAD>
| Index
| Previous Tag: <LI>
| Next Tag: <LISTING>
|
|