WCAG 4.1.2 Name, Role, Value — Testing Guide

WCAG 4.1.2 Name, Role, Value (Level A) requires that for every UI component, the assistive technology must be able to determine: what it is called (name), what kind of thing it is (role), and its curr

January 03, 2026 · 3 min read · WCAG Guides

WCAG 4.1.2 Name, Role, Value (Level A) requires that for every UI component, the assistive technology must be able to determine: what it is called (name), what kind of thing it is (role), and its current state (value/state). Miss any of these and assistive tech users cannot operate the component.

What it requires

For standard HTML / native widgets, these come free. For custom widgets, you must set them explicitly.

Common violations

1. Custom dropdown with no role


<!-- Bad -->
<div class="dropdown" onclick="toggle()">Select</div>

Screen reader says "Select" — does not know it is a dropdown, cannot expand with keyboard, cannot list options.

Fix: use