LINK
LINK provides a media independent method for defining
relationships with other documents and resources. LINK has been part
of HTML since the very early days although few browsers as yet take
advantage of it (most still ignore LINK elements).
LINK elements can be used in principle:
- for document specific navigation toolbars/menus when used
with the LINK element in document head
- to control how collections of
html nodes are rendered into printed documents
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.
- HREF
- Names an object using the URI notation.
- Specifies a URL designating the linked resource.
- REL
- The forward relationship also known as the "link type".
- REV
- Defines a reverse relationship.
A link from document A
to document B with REV=relation expresses the same relationship
as a link from B to A with REL=relation.
REV=made is sometimes used to identify the document author,
either the author's email address with a mailto URI,
or a link to the author's home page.
- TITLE
- An advisory title for the linked resource.
See
W3C: Basic Data Types for a full list of link types. Some of the
more common are:
- REL=Contents
- The link references a document serving
as a table of contents.
- REL=Index
- The link references a
document providing an index for the current document.
- REL=Glossary
- The link references a document providing a glossary
of terms that pertain to the current document.
- REL=Copyright
- The link references a copyright statement for
the current document.
- REL=Next
- The link references the next document to visit in a
guided tour.
- REL=Prev
- The link references the previous document in a
guided tour.
- REL=Help
- The link references a document offering help, e.g.
describing the wider context and offering further links to relevant
documents. This is aimed at reorienting users who have lost their way.
- REL=Bookmark
- Bookmarks are used to provide direct
links to key entry points into an extended document. The TITLE
attribute may be used to label the bookmark. Several bookmarks may be
defined in each document, and provide a means for orienting users in
extended documents.
Example LINK elements:
<LINK REL = "NEXT" HREF = "WDVL/" >
<LINK REL = "Home" HREF = "/" >
<LINK REL = "Index" HREF = "Reference/Index/">
<LINK REL = "Glossary"
HREF = "Reference/Index/">
Link to an associated Style Sheet
Can be used with REL=StyleSheet to reference a
style sheet
to be used to control the way the current document is rendered.
<LINK REL = "STYLESHEET"
HREF = "WDVL.css" TYPE = "text/css" >
|