4.1.2 Name, Role, Value

What WCAG says

For all user interface components (including but not limited to: form elements, links and components generated by scripts), the name and role can be programmatically determined; states, properties, and values that can be set by the user can be programmatically set; and notification of changes to these items is available to user agents, including assistive technologies.

Quoted from W3C. More in W3C’s Understanding 4.1.2.

How to check it yourself

  1. With a screen reader, go to every custom control: menus, tabs, accordions, toggles, sliders.
  2. Does each say what it is (“button”, “tab”), its name, and its state (“expanded”, “selected”, “checked”), and announce changes?

Can an automated test check it?

Partly. Our scanner runs these 28 axe-core rules for 4.1.2 whenever your chosen WCAG version and level include it. They can prove some failures, but a pass doesn’t prove the page meets the criterion: a person still needs to do the checks above.

Scan a web page to see which criteria it fails, or read how the checker works.