ARIA tabs must have an accessible name

Every element with role="tab" needs an accessible name, so screen reader and voice control users know which panel each tab opens.

Rule IDaria-tab-name
ImpactSerious
Success criterion 4.1.2 Name, Role, Value · A
StandardsWCAG 2.0 · WCAG 2.1 · WCAG 2.2 · Section 508 · EN 301 549
Readabler fix Fixed with a text: from the page or written by AI

Example

Before
<div role="tablist" aria-label="Account">
  <span role="tab" tabindex="0" aria-selected="true"><i class="icon-user"></i></span>
  <span role="tab" tabindex="-1" aria-selected="false"><i class="icon-card"></i></span>
</div>

A screen reader says “tab, selected, 1 of 2”, with no clue what the tab contains.

After
<div role="tablist" aria-label="Account">
  <span role="tab" tabindex="0" aria-selected="true" aria-label="Profile"><i class="icon-user"></i></span>
  <span role="tab" tabindex="-1" aria-selected="false" aria-label="Payment methods"><i class="icon-card"></i></span>
</div>

A screen reader says “Profile, tab, selected, 1 of 2”.

Why it matters

Tabs hide content until they are chosen, so the tab name is often the only hint of what lies behind it. Blind users hear only “tab, 2 of 4” when the name is missing, and must open each tab to find out what it shows. Voice control users cannot say “click Payment methods” because there is nothing to match.

The problem is common with icon-only tabs, tabs that show a number badge, and tabs whose text is drawn with CSS or an image. Sighted users see the icon and move on, so the gap rarely shows up in visual reviews. It fails WCAG 4.1.2, which requires every user interface component to have a name.

How to fix it

Visible text is best. A short text label inside the tab helps everyone, including people who do not recognise an icon:

<span role="tab" aria-selected="true">
  <i class="icon-user" aria-hidden="true"></i> Profile
</span>

Icon-only tab. Add aria-label with the same words you would use as visible text.

Name already on the page. If a visible heading or caption names the tab, point aria-labelledby at its id:

<span role="tab" aria-labelledby="tab-orders-label">
  <img src="box.svg" alt=""><span id="tab-orders-label">Orders</span>
</span>

Image inside the tab. Give the image an alt text that names the tab instead of describing the picture.

Avoid relying on title alone. It counts as a name for the check, but it is only shown on hover and is not available to touch or keyboard users.

Keep tab names short and unique within the tab list, so users can tell them apart. Hide decorative icons inside named tabs with aria-hidden="true".

Checklist

  1. Give every tab a short visible text label where possible.
  2. Add aria-label to icon-only tabs.
  3. Use aria-labelledby when the name is already visible on the page.
  4. Make tab names unique within each tab list.

How the check works

The check looks at every element with role="tab" that has no native naming method (native buttons and inputs are covered by other checks). It passes when the tab has visible text content, a non-empty aria-label, an aria-labelledby that points to text, or a non-empty title. Otherwise it fails. Whether the name is meaningful still needs a human review.

Resources

Updated October 27, 2026