56 lines
2.9 KiB
Markdown
56 lines
2.9 KiB
Markdown
[Back to 2 Operable index](index.md)
|
|
|
|
# 2.4.4 Link Purpose (In Context)
|
|
|
|
- Level: A
|
|
- Guideline: 2.4 Navigable
|
|
- Principle: 2 Operable
|
|
|
|
## What it is
|
|
|
|
The purpose of each link can be determined from the link text alone or from the link text together with its programmatically determined link context, except where the purpose of the link would be ambiguous to users in general.
|
|
|
|
## How to test
|
|
|
|
- Check: The purpose of each link can be determined from the link text alone or from the link text together with its programmatically determined link context, except where the purpose of the link would be ambiguous to users in general.
|
|
- Use the sufficient techniques below as acceptable methods when applicable.
|
|
- Confirm none of the common failures apply.
|
|
|
|
## Sufficient techniques (W3C)
|
|
|
|
- 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
|
|
- G189: Providing a control near the beginning of the web page that changes the link text
|
|
- SCR30: Using scripts to change the link text
|
|
- G53: Identifying the purpose of a link using link text combined with the text of the enclosing sentence
|
|
- H33: Supplementing link text with the title attribute
|
|
- C7: Using CSS to hide a portion of the link text
|
|
- 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
|
|
- semantically indicating links
|
|
- PDF11: Providing links and link text using the Link annotation and the /Link structure element in PDF documents
|
|
- PDF13: Providing replacement text using the /Alt entry for links in PDF documents
|
|
|
|
## Advisory techniques (W3C)
|
|
|
|
- H2: Combining adjacent image and text links for the same resource
|
|
- H80: Identifying the purpose of a link using link text combined with the preceding heading element
|
|
|
|
## Common failures (W3C)
|
|
|
|
- F63: Failure of Success Criterion 2.4.4 due to providing link context only in content that is not related to the link
|
|
- F89: Failure of Success Criteria 2.4.4, 2.4.9 and 4.1.2 due to not providing an accessible name for an image which is the only content in a link
|
|
|
|
## Resources
|
|
|
|
- WCAG 2.2 SC: https://www.w3.org/TR/WCAG22/#link-purpose-in-context
|
|
- Understanding: https://www.w3.org/WAI/WCAG22/Understanding/link-purpose-in-context.html
|
|
- Quick reference: https://www.w3.org/WAI/WCAG22/quickref/?versions=2.2#link-purpose-in-context
|
|
|
|
[Back to 2 Operable index](index.md)
|