Tabs are a set of layered sections of content, known as tab panels, that display one panel of content at a time.
Must haves
- Use ARIA tablist and associated roles and properties to communicate the tab functionality and state information.
- Implement the correct keyboard behavior for tabs (arrowing between tab elements, not tabbing between them)
- Tip: try to limit the number of tab items to below 6 so that all tabs can display in a single row on desktop (similar to horizontal navigation)
Learn more about the accessible tabs pattern
Visual Example
Tip: the tabs don’t need to look like they are paper manila folder tabs, they can be visually more subtle and still convey the same interaction to end users.

Do and Don't
Do | Don't |
---|---|
|
Here there is no markup to indicate the tab and tabpanel roles and the state of which tab is selected/currently shown. The keyboard interaction will not match the expectation for tabs. |