Home HTML Link Element Form Relationships with Link
Search MS Office A-Z   |   Search Web Pages/ Design A-Z

Form Relationships with Link

The LINK element in HTML lets you define document relationships within a web site. Some of these designations, for example, can help browsers navigate, render pages, or prepare pages for print.

The primary attribute for LINK is REL, which defines the relationship between the document in which LINK appears and the linked resource. REL is used with a text value, which can be anything the author wishes, although there are some standard values that browsers will interpret in a particular way.

LINK also accepts REV as an attribute, which works in reverse of the REL attribute; REV defines a relationship from the linked resource to the current document.

Also available is the TITLE attribute, which you can use to designate advisory information about the link. Here’s an example of the REV and TITLE attributes:

<LINK HREF=”bar.html” REV=”Subsection” TITLE=”Divisions”>

Value Description Example
Alternate Creates a reference to an alternate version of a document. This alternate version, for example, could be in a different language. E. G. For a Spanish alternate: <LINK HREF=”spanishtext.htm” REL=”alternate” LANG=”es”>
Chapter Creates a reference to a chapter in a site or a collection of documents. <LINK HREF=”chapter02.html” REL=”chapter”>
Copyright Creates a relationship between the page and a separate page with copyright information. <LINK HREF=”copyright.html” REL=”copyright”>
Glossary Creates a reference to a document that contains a list of terms applicable to the current document. <LINK HREF=”glossary.html” REL=”glossary”>
Stylesheet Refers to an external style sheet <LINK REL=”stylesheet” HREF=”Style01.css” TYPE=”text/css”>