Defines the relationship between the current document and another document.
Platform Support
IE | Netscape | Mozilla | Opera | Safari | 3.0+ | 4.0+ | 1.0+ | no | 1.0+ |
---|
Example
This example shows a <head>&</head>& element with a link to a stylesheet:
<head>
<title>Aptana Home Page</title>
<link rel="stylesheet" href="style.css" type="text/css" />
&/head>
Remarks
Remember to self-close your <link /> tags.Specify link tags (e.g. to stylesheets) as children of the head
element.
Attribute Detail
Attribute | IE | Netscape | Mozilla | Opera | Safari |
---|---|---|---|---|---|
Specifies the character set associated with the element. | 2.0+ | 1.0+ | 1.0+ | 4.0+ | 1.0+ |
CSS class assigned to the element. | 2.0+ | 1.0+ | 1.0+ | 4.0+ | 1.0+ |
Direction of the element text. | 2.0+ | 1.0+ | 1.0+ | 4.0+ | 1.0+ |
Specifies whether or not the element is disabled. | 2.0+ | 1.0+ | 1.0+ | 4.0+ | 1.0+ |
Path or URL for the linked document or object. | 2.0+ | 1.0+ | 1.0+ | 4.0+ | 1.0+ |
Language of the linked document. | 2.0+ | 1.0+ | 1.0+ | 4.0+ | 1.0+ |
Unique identifier for the element. | 2.0+ | 1.0+ | 1.0+ | 4.0+ | 1.0+ |
Language code for the content of the element. | 2.0+ | 1.0+ | 1.0+ | 4.0+ | 1.0+ |
Media type associated with the element. | 4.0+ | 1.1+ | 1.0+ | 4.0+ | 1.0+ |
Defines the relationship of the linked document to the current document. | 3.0+ | 4.0+ | 1.0+ | no | 1.0+ |
Defines the relationship of the current document to the linked document. | 3.0+ | 4.0+ | 1.0+ | no | 1.0+ |
Inline style for the element. | 2.0+ | 1.0+ | 1.0+ | 4.0+ | 1.0+ |
Target window to use for opening the linked document. | 2.0+ | 1.0+ | 1.0+ | 4.0+ | 1.0+ |
Short text description for the element. | 2.0+ | 1.0+ | 1.0+ | 4.0+ | 1.0+ |
type (link)
Specifies the type of linked file. | 4.0+ | 1.0+ | 7.0+ | 1.0+ | |
Event Detail
Event | IE | Netscape | Mozilla | Opera | Safari |
---|---|---|---|---|---|
Fires when the element is clicked. | 2.0+ | 1.0+ | 1.0+ | 4.0+ | 1.0+ |
Fires when the element is double-clicked. | 2.0+ | 1.0+ | 1.0+ | 4.0+ | 1.0+ |
Fires when a user presses down on a key while the element has focus. | 2.0+ | 1.0+ | 1.0+ | 4.0+ | 1.0+ |
Fires when a user presses a key or holds down the key while the element has focus. | 2.0+ | 1.0+ | 1.0+ | 4.0+ | 1.0+ |
Fires when a user releases a key while the element has focus. | 2.0+ | 1.0+ | 1.0+ | 4.0+ | 1.0+ |
Fires when the content of the element finishes loading. | 2.0+ | 1.0+ | 1.0+ | 4.0+ | 1.0+ |
Fires when a user clicks down on the mouse button while the element has focus. | 2.0+ | 1.0+ | 1.0+ | 4.0+ | 1.0+ |
Fires when the mouse moves while the pointer over the element. | 2.0+ | 1.0+ | 1.0+ | 4.0+ | 1.0+ |
Fires when the mouse pointer moves off of the element. | 2.0+ | 1.0+ | 1.0+ | 4.0+ | 1.0+ |
Fires when the mouse pointer moves over the element. | 2.0+ | 1.0+ | 1.0+ | 4.0+ | 1.0+ |
Fires when the user releases the mouse button while the element has focus. | 2.0+ | 1.0+ | 1.0+ | 4.0+ | 1.0+ |
Fires when the ready state of the element changes. | 4.0+ | no | no | no | no |
Availability
W3C HTML 4.01