Skip to main content

4.1.2 Name, Role, Value

Level A Since WCAG 2.0 How it is checked: Automated checker

In plain language

Every button, input, menu, tab… must have a name, role and state that screen readers can announce (e.g. "Menu button, collapsed").

Who is affected

Examples

Fails

<div class="menu-btn" onclick="openMenu()">☰</div>
<span class="tab active">News</span>

Passes

<button aria-expanded="false" aria-controls="menu">Menu</button>
<button role="tab" aria-selected="true">News</button>

How to fix

How to test it yourself

What WCAG.win checks

WCAG.win checks part of this criterion automatically. The rest still needs a person.

W3C documentation: Understanding Success Criterion 4.1.2: Name, Role, Value

Check a web page for free