Technique H59:Using the link
element and navigation tools
Applicability
HTML
This technique relates to:
- 2.4.5: Multiple Ways (Advisory)
- 2.4.8: Location (Sufficient when used with G127: Identifying a Web page's relationship to a larger collection of Web pages)
Description
The objective of this technique is to describe how the link
element can
provide metadata about the position of an HTML page within a set of Web pages or can
assist in locating content with a set of Web pages. The value of the rel
attributes indicates what type of relation is being described, and the href
attribute provides a link to the document having that relation. Different link
element rel
values are used to create relationships:
next
: Refers to the next document in a linear sequence of documents.prev
: Refers to the previous document in an ordered series of documents.
Examples
Example 1
A Web page for Chapter 2 of an on-line book might contain the following links
within the head
section.
<link rel="prev" href="Chapter01.html" title="01. Why Volunteer?"> <link rel="next" href="Chapter03.html" title="03. Who Volunteers?" />
Other sources
No endorsement implied.
Tests
Procedure
For a Web page that is within a sequence or collection of Web pages:
- Check that all
link
elements pertaining to navigation occur in thehead
section of the document. -
For each
link
element in thehead
section of the document which pertains to navigation, check that it contains at least:- a
rel
attribute identifying the link type - a valid
href
attribute to locate the appropriate resource
- a
Expected Results
- All of the checks above are true.