liveBook · Manning

Link purpose (in context)

As explained in Architecting Accessibility

Link Purpose (In Context) is a WCAG success criterion requiring a link's purpose to be determinable from its text or programmatically determined context.

A screen reader user may scan a list of links to find a destination quickly. “Read more” or “Click here” can make that search frustrating when the destination is unclear. WCAG 2.2 Level A criterion 2.4.4 requires a link’s purpose to be determinable from its text or its programmatically determined context. section 5.4

Make the destination the link

Instead of linking “Click here” after a restaurant recommendation, link the restaurant’s name. The first version can meet the criterion when the same sentence supplies its context, but the name remains useful when heard alone. section 5.4

TIP: Context can come from the same sentence or paragraph, a containing list item, or a table cell and its associated header. Prefer descriptive link text anyway: a link list may not convey that surrounding context. section 5.4

Figure 5.12 An image of text, along with a clickable “Read more...” link placed on top of it. This pattern is very common in carousels, making it extremely hard for assistive technology users to discern what the link is referring to. Context, as conveyed by the surrounding text, is lost.

A “Read more...” link placed over an image of text can lose the context that would identify its destination to assistive technology users. section 5.4

How Architecting Accessibility covers it

How deep it goes
Defines the Level A requirement, identifies permitted contexts, and contrasts acceptable contextual wording with preferable standalone wording.
Examples
Contrasts “Click here” with a linked restaurant name and shows “Read more...” losing context over an image of text.
What you can do after
Apply it by checking whether link text or its programmatically determined context identifies the destination, then prefer descriptive text.
How it connects
Connects link text, programmatically determined context, screen readers, and WCAG Link Purpose (Link Only).

This explainer was generated by Manning's knowledge graph from the text of Architecting Accessibility. The section links point to the parts of the book it draws on.