Links
Topic | Technique | WCAG AA Requirement |
---|---|---|
Semantic Markup and Purpose | Link Markup: Links MUST be semantically designated as such.
|
Required WCAG 4.1.2 |
Links Versus Buttons: Links SHOULD be used only for actions that take the user to other locations, and SHOULD NOT be used for button-like functionality.
|
Best Practice | |
Link Text | Discernible Text: A link MUST have programmatically discernible text, as determined by the accessible name calculation algorithm.
|
Required WCAG 4.1.2 |
Distinguishable Link Purpose: The purpose of each link MUST be understandable and distinguishable from other links on the same page, either from the link text alone (ideally), or from the immediate surrounding context of the link.
|
Required WCAG 2.4.4 |
|
Avoid "Link" (or Similar) in the Link Text: The link text SHOULD NOT state its semantic role (e.g. don't say "link to..."), because screen readers already state the role before reading the link text. |
Best Practice | |
Consistent Link Text Across Pages: Links to the same destinations MUST be consistently identified with the same (or very similar) link text across all pages of the site.
|
Required WCAG 3.2.4 |
|
Links Opening In New Tab or Window: A link that opens in a new window or tab SHOULD indicate that it opens in a new window or tab. |
Best Practice | |
Links to Non-HTML Files: A link to a file or destination in a non-HTML format (e.g. MS Word, PDF, plain text, etc.) SHOULD indicate the type of file or destination. |
Best Practice | |
Links to External Sites: A link to an external site MAY indicate that it leads to an external site. |
Best Practice | |
Keyboard Accessibility | Keyboard-Focusable: Links MUST be keyboard-focusable.
|
Required WCAG 2.1.1 |
Keyboard Activation: Links MUST activate with the enter/return key.
|
Required WCAG 2.1.1 |
|
Focus Order | Focus Order: The navigation order of focusable elements (links, form elements, etc.) MUST be logical and intuitive.
|
Required WCAG 2.4.3 |
Tabindex: The tabindex attribute SHOULD NOT be used with positive values to customize the tab order (e.g. don't use tabindex="1" ). |
Best Practice | |
Link Colors, Contrast, and Styles | Links Visually Distinguishable from Non-Links: Links MUST be visually distinguishable from surrounding non-link text.
|
Required WCAG 1.4.1 |
Color as a Way to Visually Distinguish Links: Color alone MUST NOT be used as the only way to distinguish links from surrounding text unless the color contrast between the link and the surrounding text is at least 3 to 1 and an additional differentiation (e.g. underline, outline, etc.) is provided when the link is hovered or receives focus.
|
Required WCAG 1.4.1 |
|
Link Contrast: Links MUST have a contrast ratio of 4.5 to 1 (for small text) or 3 to 1 (for large text) against their background.
|
Required WCAG 1.4.3 |
|
Target Size | Target Size: Links SHOULD measure a minimum of 44px by 44px.
|
Best Practice |
Visual Focus Indicator | Focus Indicator: All links MUST show a visual focus indicator when in focus.
|
Required WCAG 2.4.7 |
Enhanced Focus Indicator: Links MAY have enhanced visual focus indicator styles.
|
Best Practice | |
Focus Indicator Contrast: The contrast of all visual focus indicators against the background MUST be at least 3 to 1.
|
Required WCAG 1.4.11 (WCAG 2.1) |
|
Visual Hover Indicator | Enhanced Hover Indicator: Links SHOULD have enhanced visual hover indicator styles. |
Best Practice |
Hover Cursor Style: On hover over a link, the mouse cursor SHOULD appear as the pointer style, to provide a visual confirmation of the link role.
|
Best Practice | |
In-Page Navigation | Skip Navigation: A keyboard-functional "skip" link SHOULD be provided to allow keyboard users to navigate directly to the main content.
|
Required WCAG 2.4.1 (This technique is one way to satisfy this requirement) |
Page Table of Contents: A table of contents for the page MAY be included at the top of the content or in the header.
|
Required WCAG 2.4.1 (This technique is one way to satisfy this requirement) |