Monday, August 11, 2008

The <link> element

The link element is contained in the head element. The purpose of this element is to define the relationship between the current document and another document. link is an empty element.
With the link tag, you can specify the relationships between the documents of a document set.
The href attribute's value is the URL of the target. This is a required attribute. The rel attribute specifies the relationship from the current document to the target document. The rev attribute specifies the reverse: the relationship from the target document to the current document.
The relationship can be specified by the values next or prev indicating next or previous.
The title attribute specifies the name of the target document.
The type attribute specifies the MIME type of the target document.
Example: <link rel="stylesheet" href="alltags.css" type="text/css" />
Browsers do not do anything with the link tag. However, this tag can be used by you to organize a web site. It can also be useful when using server-side scripting to generate pages.

No comments: