Automatic or manual tab activation
Tabs can be built to be activated automatically or manually. There are a couple subtle differences between each type:
- “Automatic” tabs become activated immediately upon focus via a mouse click or the arrow keys.
- “Manual” tabs can receive focus via the arrow keys, but require the user to press either
Enter
orSpace
, or click them with their mouse to activate them.
You can find additional guidance as well as examples of automatic and manually activated tab groups on the WAI-ARIA Authoring Practices Guide Tabs Pattern page.
Code examples
- More details and working examples
- You can also use radio buttons as controls. This will be easier to understand for screenreader users (as is done with this website’s tabs).
- Note: an
aria-selected
state is explicity required as some screenreaders will assume the tab is selected unless delaredfalse
.