Idocs Guide to HTML

<LINK ...>

Usage Recommendation
use it if you have a particular purpose which you know works

  • REL: relationship to this page
  • REV: reverse relationship to this page
  • HREF: URL of related document
  • TITLE: suggested title
  • MEDIA: What media type the link applies to
  • TYPE: MIME type of linked resource

<LINK ...> is our nomination for "Most Under Supported Tag". <LINK ...> is a great idea which browser makers have largely chosen to ignore. Most of the examples on this page are from the last version of Mosaic which came out a few years ago.

<LINK ...> defines a relationship between the current page and another page or resource. Suppose, for example, that we want to establish that the home page for the current page is We would put the following <LINK ...> in the <HEAD> section:

<TITLE>Document Tags</TITLE>

The REL attribute establishes the relationship, in this case that the related page is the Home page for this web site. You can put any value you want, but certain common values have evolved (they are listed below). HREF gives the URL for the related page.

Another use for <LINK ...> (which always goes in the <HEAD> section) is to establish who is the author of the current page. To do this, we could put this <LINK ...> in the <HEAD> section:

<LINK REV=MADE HREF="" TITLE="Miko O'Sullivan">

In this case, we use REV instead of REL. REV means "the reverse relationship". That is, REV describes what the related resource would put in a <LINK ...> tag using REL. We use REV to indicate that the related entity (Miko) made this document. If we used REL, that would indicate that this document made Miko, which isn't how it happened (my parents and God did that). HREF again indicates the URL for the related resource, in this case an email address. It is also common to put the URL of the author's personal home page. TITLE suggests a title for the resource. TITLE suggests a title for the related resource.

<LINK ...> is ignored by most browsers, which is unfortunate. (One of the only browsers in current production which does support <LINK ...> is iCab, a web browser for the Macinotsh. See their FAQ.) Mosaic was one of the few which browsers made use of <LINK ...>. Mosaic makes a sort of "quick index" bar at the top of pages which use <LINK ...>. For example, for a document whose header section looks like this:

<TITLE>Document Tags</TITLE>

<LINK REL=HOME       TITLE="Idocs Home Page"   HREF="">
<LINK REL=PREVIOUS   TITLE="URLs"                 HREF="../urls/">
<LINK REL=NEXT       TITLE="Lines and Paragraphs" HREF="../linepar/">
<LINK REV=MADE       TITLE="Miko O'Sullivan"      HREF="">
<LINK REL=COPYRIGHT  TITLE="copyright info"       HREF="copyright.html">
<LINK REL=STYLESHEET TITLE="style sheet"          HREF="stdstyles.css">


Mosaic will put a link bar at the top of the page:

picture of a Mosaic button bar built from the LINK tag

Mosaic even recognizes some of the more common values for REL and REV, and uses appropriate icons for them. These are the values it recognizes:
Homepicture of home LINK icon
Beginpicture of begin LINK icon
Previouspicture of previous LINK icon
Nextpicture of next LINK icon
Endpicture of end LINK icon
Parentpicture of parent LINK icon
Childpicture of child LINK icon
Siblingpicture of sibling LINK icon
Toppicture of top LINK icon
Uppicture of up LINK icon
Indexpicture of index LINK icon
Table of Contentspicture of ToC LINK icon
Copyrightpicture of copyright LINK icon
Helppicture of help LINK icon

Putting a link bar on the page is not the only use for <LINK ...>. Browsers which use stylesheets can refer to a central style page using REL. Corporate intranets can use <LINK ...> to build site maps. <LINK ...> can be a useful tag for many purposes; hopefully browser makers will start utilizing its potential.

Copyright 1997-2002 Idocs Inc. Content in this guide is offered freely to the public under the terms of the Open Content License and the Open Publication License. Contents may be redistributed or republished freely under these terms so long as credit to the original creator and contributors is maintained.