Back to top
On this page
Keyboard navigation
Users should have the ability to navigate to and interact with the back to top button using their keyboard.
| Key | Result |
|---|---|
| Tab | Shifts focus to back to top |
| Shift + Tab | Shifts focus to the previous interactive element |
| Enter | Activates back to top and moves focus to the very first interactive element on the page |
Focus order
Back to top should be the last interactive element to receive focus.
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.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.
Other libraries
To learn more about our other libraries, visit the getting started page.