The Link element indicates a relationship between the document and some other object. A document may have any number of Link elements.
The Link element is empty (does not have a closing element), but takes the same attributes as the Anchor element.
The <LINK>
element would typically be used to provide pointers to related indexes, or glossaries. Links can also be used to indicate a static tree structure in which the document was authored by pointing to a "parent" and "next" and "previous" document, for example.
Servers may also allow links to be added by those who do not have the right to alter the body of a document.
The <LINK>
element represents one of the primary style sheet inclusion mechanism elements. It can be used to specify the location of the style sheet that is to be used for the document.
<HTML>
<HEAD>
<TITLE>This HTML document uses a style sheet</TITLE>
<LINK REL="stylesheet"
TYPE="text/css"
HREF="http://www.stylesheets.com/sheets/formal.css"
TITLE="formal">
</HEAD>
<BODY>
Rest of the document goes here
</BODY>
</HTML>
In the above HTML fragment, the <LINK>
element points to the file "formal.css" at the given URL. It tells the browser that :
TYPE
;
REL
ationship to the HTML document is that it is a "stylesheet";
TITLE
is "formal".
For more information about these specific attributes, see the <A>
section and for more general information about style sheets, see the style sheets section.