alphagov / accessibility-community-notes-and-discussion

Draft accessibility guidance

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Clarify link purpose requirements

LJWatson opened this issue · comments

In Understanding WCAG it says:
"Make sure the purpose of a link is obvious from either the link text or the surrounding content ("

When you drill into the requirements for this, it says that the purpose of the link must be understandable from its link text, or from its surrounding content *if that relationship can be understood by screen readers and the like. The reality is that most of the time ATs can't determine that relationship, so we should simplify this to:
"•Make sure the purpose of a link is obvious from the link text, or from additional content associated with the link"

The objective of this technique is to describe the purpose of a link by providing descriptive text as the content of the element. Please refer the WCAG Success criteria of link purpose.

Sufficient Techniques
G91: Providing link text that describes the purpose of a link
H30: Providing link text that describes the purpose of a link for anchor elements
H24: Providing text alternatives for the area elements of image maps
FLASH27: Providing button labels that describe the purpose of a button
Allowing the user to choose short or long link text using one of the techniques below:

G189: Providing a control near the beginning of the Web page that changes the link text
SCR30: Using scripts to change the link text
FLASH7: Using scripting to change control labels
G53: Identifying the purpose of a link using link text combined with the text of the enclosing sentence
Providing a supplemental description of the purpose of a link using one of the following techniques:

H33: Supplementing link text with the title attribute
C7: Using CSS to hide a portion of the link text
Identifying the purpose of a link using link text combined with programmatically determined link context using one of the following techniques:

ARIA7: Using aria-labelledby for link purpose
ARIA8: Using aria-label for link purpose
H77: Identifying the purpose of a link using link text combined with its enclosing list item
H78: Identifying the purpose of a link using link text combined with its enclosing paragraph
H79: Identifying the purpose of a link in a data table using the link text combined with its enclosing table cell and associated table header cells
H81: Identifying the purpose of a link in a nested list using link text combined with the parent list item under which the list is nested
G91: Providing link text that describes the purpose of a link AND Semantically indicating links using one of the following techniques