Tabs

Tabs are a set of layered sections of content, known as tab panels, that display one panel of content at a time. Each tab panel has an associated tab element, that when activated, displays the panel. The list of tab elements is arranged along one edge of the currently displayed panel, most commonly the top edge.

Tabs Pattern, WAI ARIA Authoring Practices Guide (APG)

§ Notes

Missing.css uses <div role=tablist>, <button role=tab>, and <div role=tabpanel> for tabs. To get the actual behavior of an accessible tabset, you can use Missing.js § Tabs.

Keyboard Interaction

§ Example

A focusable element before the tabs

This is the content for the first tab

A focusable element after the tabs