ToC ~ Up ~ Prev ~ Next ~ Index Introduction to HTML
Last Update: 5 January 1998

3.3 LINK Element

The LINK element belongs within the HEAD element of an HTML document. It is to be used to indicate a relationship between the document and other documents or objects. Consequently a document may have any number of LINK elements, to indicate all the possible relationships between the document and other, related documents.

The LINK element is empty (i.e, there is no closing </LINK>) but takes the same attributes as the Anchor (A) element. Typically, a LINK element would be used to indicate authorship, related indexes and glossaries, older or more recent versions, etc. Links can also indicate the tree structure in which the document was authored by pointing, for example, to the "parent", "next" or "previous" documents.

LINK is currently used to referenced external cascading stylesheet files, using the format
<LINK HREF="url-to-stylesheet" REL="stylesheet">.

3.3.1 Examples of LINK

<HEAD>
  <LINK HREF="file2.html" REL="next">
  <LINK HREF="/cgi-reg/gloss.pl" REL="glossary">
  <LINK HREF="/cgi-bin/index.pl" REL="index">
  <LINK HREF="toc.html" REL="contents">
  <LINK HREF="file0.html" REL="previous">
</HEAD>

ToC ~ Up ~ Prev ~ Next ~ Index Introduction to HTML
© 1994-1998 by Ian Graham
Last Update: 5 January 1998