aria-selected
An ARIA state marking which item is selected in widgets such as tabs, listboxes and grids.
In more detail
In a tab list, the active tab has aria-selected="true" and the others false. Selection is different from focus: arrow keys may move focus without changing which tab is selected, depending on the widget.
Related terms
- tabs — A pattern of tab buttons (role tab) in a tab list, each showing one tab panel of content while hiding the others.
- roving tabindex — A technique where only the active item in a group has tabindex="0" and the rest have tabindex="-1", so the group is one tab stop and arrow keys move between items.
- listbox — The ARIA role for a list of options the user can select from, such as the suggestions under a combobox.
- ARIA role — The role attribute that tells assistive technology what kind of thing an element is, such as button, dialog, tab or switch.
Taught in
- Compound Component Patterns: Context Sharing & Internal State — Design Systems & Component Engineering
- Accessible Headless Primitives: ARIA, Focus, And Keyboard — React 19 & Modern Component Architecture