Typed link
![]() | It has been suggested that this article be merged with Semantic link. (Discuss) Proposed since February 2009. |
A typed link in a hypertext system is a link to another document or part of a document that includes information about the character of the link. For example, rather than merely pointing to the existence of a document, a link might also specify that the document supports the conclusion of the article pointing to it, that it contradicts the article pointing to it, that it is an older version of the document, that it serves to define the word next to the link, that it is an index to other documents of the same type, or some other relationship. This allows a user to take actions such as searching only certain types of links or displaying them differently. It may also allow browsing software to do things like pre-fetching documents it expects the user to browse.
While not an important part of Internet-based hypertext systems, typed links were a common feature in pre-Internet hypertext systems such as Xanadu, NoteCards, HyperWriter, IBIS/gIBIS, and others. Although they can be very useful, the lack of a standardized set of link attributes such as "Supports Position"/"Refutes Position" as well as the difficulty of applying the attributes has always hindered the use of typed links beyond prototyping purposes. Any system of attributes would turn a hypertext corpus into a semantic web, and permit more sophisticated processing.
Version 4 of the HTML standard defined by the World Wide Web Consortium supports typed links using the rel
(forward relationship) and rev
(reverse relationship) attributes.[1] These attributes are applied to either the
<link>
tag (for links between whole documents) or the <a>
tag (for links from a specific part of a document). For example, the tag <link rel="contents" href="top.html">
specifies that the document "top.html" is a table of contents for the work that includes the document you are currently reading, and the tag <link rel="next" href="chap3.html">
specifies that "chap3.html" is the next document in logical sequence after the one you are reading.
The following link types are defined in the HTML 4 standard[2]:
- alternate
- stylesheet
- start
- next
- prev
- contents
- index
- glossary
- copyright
- chapter
- section
- subsection
- appendix
- help
- bookmark
Unofficial link types also exist. For example, Google has proposed to reduce the effect of comment spam in blogs with "rel=nofollow".[3]
References
- ^ http://www.w3.org/TR/html4/struct/links.html#h-12.1.2
- ^ "Basic HTML data types". W3C HTML 4 Recommendation. 1999-12-24.
- ^ "Preventing comment spam". Google Blog. 2005-01-18.
External links
- "Link relationships". HTML 4.01 Specification. W3C.