Skip link
Keyboard navigation
Users will interact with the skip link using a keyboard primarily.
Key | Result |
---|---|
Tab | Makes the skip link appear and shifts focus to it |
Shift + Tab | Hides the skip link and moves focus to the previous control or interactive element, if any |
Enter | Activates the skip link and shifts focus to the main content |
Focus order
The skip link should be the first item on a page to receive focus. After the skip link is activated, the first interactive element in the main content area will receive focus next.
Hiding a skip link
In order to hide the skip link until it’s called by the user, positioning it outside the viewport is recommended. Using display: none
or the hidden
attribute in CSS removes it from keyboard navigation and makes it unusable. Other methods, like making its size equal to 0px, can also prevent screen readers from accessing the element.
Learn more about making invisible content accessible for screen readers.
ARIA Authoring Practices Guide (APG)
Learn to use the accessibility semantics defined by the Accessible Rich Internet Application (ARIA) specification to create accessible web experiences.
Web Content Accessibility Guidelines
Understanding documents provide detailed explanations for Web Content Accessibility Guidelines (WCAG) guidelines and success criteria.
- SC 1.2.1 Audio-only and Video-only (Prerecorded) (Level A)
- SC 1.2.2 Captions (Prerecorded) (Level A)
- SC 1.4.1 Use of Color (Level A)
- SC 2.1.1 Keyboard (Level A)
- SC 2.1.3 Keyboard (No exception) (Level AAA)
- SC 2.4.3 Focus order (Level A)
- SC 2.5.5 Target size (Level AAA)
Other libraries
To learn more about our other libraries, visit this page.
Feedback
To give feedback about anything on this page, contact us.