Accessible name for tab elements
Last updated:
How to define an accessible name for a tab element?
The following elements with role="tab" have a valid name that can be announced by screen readers:
<div role="tab">Tab name</div>
<!-- or -->
<div role="tab" aria-label="Tab name"></div>
<!-- or -->
<div role="tab" aria-labelledby="name-for-tab"></div>
<p id="name-for-tab">Name for tab</p>
Why is this important?
Screen readers announce tab elements with their accessible name. This way, people who use a screen reader understand the purpose of each tab in a tab interface.
This rule often fails because tabs contain only icons without a text alternative, leaving screen reader users unable to determine the tab’s purpose.
More info:
Rule info
Standard
WCAG A SC 4.1.2
User impact
Serious impact Significantly hinders users with disabilities. Should be fixed as a high priority. Critical : blocks access entirely Serious : significantly hinders use Moderate : causes difficulty Minor : minimal disruptionFix complexity
High level of required technical expertise To resolve this issue, you need technical expertise in software engineering. Resolving this issue requires modifying the software code, for which you need a background in software engineering.Affects
Visual People with vision related disabilities can include those with color blindness, low vision, or complete blindness. Providing alternative text (also known as alt text) for graphical content is especially important for these individuals, as it allows assistive technologies such as screen readers to describe the content to them.
Free Website Accessibility Audit
Was this article helpful?
Thanks for your feedback!