About This Accessibility Rule
When used as links, link text and alternative text for images must be recognizable by screen readers, have no duplicate labels, and be focusable.
- Accessibility is hindered by inaccessible link components, as they are a crucial component of a website.
- Users who traverse a webpage using only the keyboard (and no mouse) can only click on links that can gain programmed emphasis. Inaccessible to these users is any link that cannot gain programmatic focus.
- Similar to sighted people, screen reader users must know where a link leads. This information is provided via inner link text, albeit it will not be utilized if a screen reader cannot access it.
-
Only the links and form components that can get programmatic focus can be activated by keyboard users, including those with visual impairments or those who cannot use a mouse. Keyboard users cannot access events activated only by other sorts of focus, such as
onmouseoverevents that depend on the mouse hover focus. By default, only links and form elements receive keyboard emphasis. Addtabindex="0"to items that are not links or form components to make them focusable.
What this Accessibility Rule Checks
Ensures that each link’s name is accessible.
Learn more:
Deque
Reference
Deque University - How To Fix
W3C
Reference
W3C WAI - Using aria-label to provide labels for objects
W3C
Reference
W3C WAI - Using aria-label to provide an invisible label
W3C
Reference
WCAG 2.1 - Using aria-labelledby for link purpose
W3C
Reference
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
W3C
Reference
WCAG 2.1 - Providing link text that describes the purpose of a link
W3C
Reference
WCAG 2.1 - Providing link text that describes the purpose of a link for anchor elements
Help us improve our guides
Was this guide helpful?
Detect accessibility issues automatically
Rocket Validator scans thousands of pages with Axe Core and the W3C Validator, finding accessibility issues across your entire site.