Robust · Compatible

4.1.2 Name, Role, Value

Every custom UI component (built with <div> or <span> rather than native HTML) needs the correct name, role and state exposed through ARIA, so assistive technology can identify and operate it correctly.

Level A Added in WCAG 2.0 28 automated rules

What WCAG 4.1.2 Requires

Every custom UI component (built with <div> or <span> rather than native HTML) needs the correct name, role and state exposed through ARIA, so assistive technology can identify and operate it correctly.

Can AccessBell Test This Automatically?

Yes. AccessBell's scanner runs axe-core, which includes 28 rules that catch code-level failures of this criterion:

This criterion is included in: WCAG 2.2 AA Checker, WCAG 2.1 AA Checker, ADA Compliance Checker, Section 508 Checker, EN 301 549 Checker.

How to Test It by Hand

Inspect custom components (toggles, tabs, custom dropdowns) in the browser's accessibility tree and confirm each has an appropriate role, accessible name, and reflects its current state (expanded, checked, selected).

Common Failures

  • A custom checkbox built from a <div> has no role="checkbox" or aria-checked state.
  • A custom dropdown never updates aria-expanded when opened.

Example Fix

  1. Describe the purpose, not the pixels. Write alt text that says what the image does or shows in context, for example "Download the 2026 price list" for a linked icon.
  2. Mark decorative images as decorative. Use an empty alt="" so screen readers skip images that add nothing, such as background flourishes.
  3. Keep it short. One sentence is usually enough. Put longer descriptions of charts or diagrams in nearby text.
<!-- Informative image: describe its purpose -->
<img src="/team.jpg" alt="Our support team at the Denver office">

<!-- Image inside a link: describe where the link goes -->
<a href="/pricing"><img src="/icon-tag.svg" alt="Pricing"></a>

<!-- Decorative image: empty alt so it is skipped -->
<img src="/divider.svg" alt="">

WCAG 4.1.2 Questions

What does WCAG 4.1.2 require?

Every custom UI component (built with

or rather than native HTML) needs the correct name, role and state exposed through ARIA, so assistive technology can identify and operate it correctly.

Can AccessBell test WCAG 4.1.2 automatically?

Yes. AccessBell runs 28 automated rules that can catch failures of this criterion, including in our WCAG 2.2 AA Checker, WCAG 2.1 AA Checker, ADA Compliance Checker, Section 508 Checker, EN 301 549 Checker.

What level is WCAG 4.1.2?

Level A, added in WCAG 2.0.

Sources

This page explains a technical standard and is not legal advice. See our disclaimer.

Check Your Site Against WCAG 4.1.2

Run a free scan and see whether your pages pass 4.1.2 Name, Role, Value, along with every other criterion in WCAG 2.2, 2.1 or 2.0.

Then $29/mo per domain. Cancel anytime.