HTML and CSS Reference
In-Depth Information
The value of the attribute is an arbitrary character string, enclosed in
quotation marks. The type attribute
The type attribute provides the MIME content type of the linked docu-
ment. Supported by all the popular browsers, the HTML 4 and XHTML
standard type attribute can be used with any linked document. It is often
used to define the type of a linked stylesheet. In this context, the value
of the type attribute is usually text/css . For example:
<link href="styles/classic.css" rel=stylesheet type="text/css">
creates a link to an external stylesheet within the <head> of a document.
See Chapter 8 for details. How browsers might use <link>
Although the standards do not require browsers to do anything with the
information provided by the <link> tag, it's not hard to envision how this
information might be used to enhance the presentation of a document.
As a simple example, suppose you consistently provide <link> tags for
each of your documents that define next , prev , and parent links. A
browser could use this information to place at the top or bottom of each
document a standard toolbar containing buttons that would jump to the
appropriate related document. By relegating the task of providing simple
navigational links to the browser, you are free to concentrate on the
more important content of your document.
As a more complex example, suppose that a browser expects to find a
<link> tag defining a glossary for the current document and that this
glossary document is itself a searchable document. Whenever a reader
clicked on a word or phrase in the document, the browser could auto-
Search WWH ::

Custom Search