Tabs
A row of labels that switch between panels of content occupying the same space, borrowed from paper folder tabs, suited to parallel sections viewed one at a time, and governed by a specific keyboard pattern.
Tabs are a row of labels, each of which shows its own panel of content in a shared space. Clicking a tab replaces the visible panel with another. The design comes from paper: index card dividers and file folders with labeled tabs sticking up from the edge. Early graphical interfaces used tabs in settings dialogs, and web browsers adopted them for pages in the late 1990s and 2000s.
Tabs work when the content splits into parallel sections that people use one at a time: the description, specifications, and reviews of a product, or the sections of a settings window. They save space while keeping every option visible, which is an advantage over menus that hide choices; see Hamburger Menu.
Tabs are the wrong choice in several common cases:
- When people need to compare panels. Switching back and forth to compare two tabs makes the reader hold one in memory.
- For sequential steps. Tabs suggest the sections can be visited in any order. A form with required steps needs a step-by-step flow instead.
- When there are too many. Tabs that wrap onto two rows jump around when selected in some designs, and tabs that scroll sideways hide options.
- When most readers need everything. A single page with headings is easier to read and to search.
Visual design matters. The active tab should look connected to its panel, usually sharing its background and having no border between them, which groups them visually; see Gestalt Principles. Labels should be short and specific so readers can predict what each panel holds.
The accessibility pattern for tabs is well defined. The tab list counts as one stop when moving through a page with the Tab key; arrow keys move between tabs; and each tab is marked as selected or not and linked to its panel through ARIA attributes; see Keyboard Navigation. That differs from what many developers expect, and custom tabs often get it wrong.
On phones, a bar of four or five tabs at the bottom of the screen became the standard way to navigate apps, reachable with a thumb; see Touch Target Size. Each tab usually keeps its own history, so switching back returns to where the person left off.
Web tabs that change content without changing the address can't be bookmarked or shared. Reflecting the selected tab in the URL fixes this, a form of Deep Linking.
Browser tabs created habits of their own. People keep dozens open as reminders, and browsers slow down background tabs to save power; see Background Tab Throttling.
See also3
Accordion
A stack of headings that each expand to reveal a section of content, saving space on long pages and small screens at the cost of hiding what readers might have needed to see.
Design & Interface12 connections
Dropdown Menu
A control that hides a list of options until it's opened, saving space at the cost of hiding choices, which ranges from desktop menu bars to the web's notoriously hard-to-style select element and the sprawling mega menus of retail sites.
Design & Interface17 connections
Bottom Sheet
A panel that slides up from the bottom of a phone screen to show extra content or choices, often draggable between heights, placed where thumbs can reach it on large phones.
Design & Interface13 connections
Linked from8
- AccordionDesign & Interface
A stack of headings that each expand to reveal a section of content, saving space on long pages and small screens at the cost of hiding what readers might have needed to see.
- Background Tab ThrottlingWeb Platform
Browsers deliberately slow, freeze, or discard pages that are not visible, so code that assumes it keeps running in the background will be wrong.
- Cross-Tab CommunicationWeb Platform
Keeping several open tabs of the same app consistent, best done by broadcasting small notifications and letting each tab re-read the truth.
- Deep LinkingWeb Platform
Linking straight to a specific page or item rather than a site's front door, once fought over in court and now a feature that apps and web apps must work to support.
- Focus ManagementDesign & Interface
Deliberately controlling which element receives keyboard focus as an interface changes.
- Gestalt PrinciplesDesign & Interface
A set of perceptual rules describing how the eye groups discrete elements into wholes before conscious analysis begins.
- Hamburger MenuDesign & Interface
The three-line icon that hides a site's or app's navigation behind a tap, a fix for small screens that saves space at the price of making whatever it hides less likely to be found.
- Touch Target SizeDesign & Interface
How large a tappable element needs to be for fingers to hit it reliably, roughly 44 to 48 points, and why the visible icon can be smaller than the area that responds.