• Success Criterion 2.5.3
  • Conformance level A
  • W3C reference F111

Visible Label Text With No Accessible Name Behind It

2.5.3 — Label in Name

Scenario

Setting

A ride-hailing app's trip booking screen

What’s wrong

A control shows label text on screen but has no accessible name at all — screen readers announce nothing useful and voice control can't target it.

Example

<button aria-label="Find">Search</button>

Why it matters

Voice-control users and screen-reader users who depend on spoken names matching visible text.

How to test

Inspect a control that shows label text on screen: check its computed accessible name — if empty, it fails.

How to fix

Give the control an accessible name that includes its visible label text.

<button aria-label="Search">Search</button>

The accessible name must contain the visible label text so voice-control users can activate it by what they see.

Outcome

On a ride-hailing app's trip booking screen, this barrier is gone for voice-control users and screen-reader users who depend on spoken names matching visible text — they can finish what they came here to do.

Who is affected

Voice-control users and screen-reader users who depend on spoken names matching visible text.

Learn more