To move through a page faster, a screen reader user can display the list of all its links, or jump from link to link with the Tab key. Either way, they hear the link on its own, without rereading the paragraph around it. The link text must then be enough, or almost, to say where it goes.
RGAA criterion 6.1 (French original): Chaque lien est-il explicite (hors cas particuliers) ? WCAG 2.2: 2.4.4 Link Purpose (In Context) (Level A), with 1.1.1 Non-text Content and 2.5.3 Label in Name (Level A).
The link text: what the screen reader announces
The RGAA calls a link’s accessible name its link text. According to the glossary, the browser calculates it in this order and keeps the first source it finds:
- the text referenced by the
aria-labelledbyattribute; - otherwise, the
aria-labelattribute; - otherwise, the content of the link: its text, or the alternative of the image it contains;
- otherwise, the
titleattribute.
In most cases, the link text is therefore the underlined text you see.
The link context: what can complete the text
The criterion accepts a link text that is not enough on its own, provided its context completes it. The glossary lists what counts as context: the sentence or paragraph containing the link, the list item, the heading before it, and in a table, the link’s cell or its header.
In the examples below, the links are drawn: they go nowhere, and your screen reader does not count them among the links on this page.
Example: a link text that stands on its own
November events programme
Code
<p><a href="programme.html">November events programme</a></p>
Compliant. Even heard alone, in the list of links, the text says where it goes. This is the most comfortable solution.
Example: “read more” at the end of a sentence
The November events programme is out: read more.
Code
<p>The November events programme is out: <a href="programme.html">read more</a>.</p>
Compliant. “read more” says nothing on its own, but the sentence containing it gives the destination. In the list of links, though, the person will only hear “read more”: the previous example saves them going back to the sentence.
Example: “Click here” with no context
Events
Click here
Code
<p><a href="programme.html">Click here</a></p>
Non-compliant. The link is alone in its paragraph, and “Events” is not a real heading (an h2 element, for instance): nothing in the context says where “Click here” goes. In the list of links, the person has no way of guessing.
Example: three identical “Read more” links
- Read more
- Read more
- Read more
Code
<ul>
<li><a href="news-1.html">Read more</a></li>
<li><a href="news-2.html">Read more</a></li>
<li><a href="news-3.html">Read more</a></li>
</ul>
Non-compliant. The three links lead to three different news items, but carry the same text, and the list contains no other text. The person hears “Read more” three times with no way to choose. Putting each item’s title in its link solves the problem.
Special cases
The criterion allows one exception: a link that is ambiguous for everyone, for instance in a game asking you to pick a door at random between “Door 1” and “Door 2”. Nobody, sighted or not, knows what is behind it: in that case, criterion 6.1 is not applicable.
Key points
- Read each link on its own, as in the list of links: does it say where it goes?
- If not, the sentence, the paragraph, the list item or the heading before it must complete it.
- Two links going to two different places do not share the same text, unless their context tells them apart.
To practise: the quiz “Links and form fields”, which also covers form fields.