Skip to content

WCAG 2.5.3: Label in name

In European law this criterion is EN 301 549 clause 9.2.5.3 — chapter 9, the part of the harmonised standard that applies to websites under the European Accessibility Act.

How to test by hand

Automated checks find only some failures of this criterion. These steps cover the rest.

You need

Steps

  1. For each button, link and form field with visible text, note the words shown, then check its accessible name in the browser's accessibility panel or a screen-reader preview.
  2. Check that the accessible name contains the visible words, ideally at the start; for example a visible "Search" with the name "Search for a value" passes.
  3. In developer tools, look for aria-label or aria-labelledby on controls that already have visible text, since they replace that text as the name.
  4. When comparing, ignore differences in capitalisation and punctuation; "first name" matches a visible "First Name:".
  5. Treat symbolic characters such as "B", "I" or ">" on toolbar buttons as icons, not labels; their name should describe the function instead.
Passes when
For every control with a visible text label, the accessible name includes those same words.
Fails when
A control's accessible name differs from its visible text, for example a button reading "Send" announced as "Submit form", or a labelled control has no accessible name at all.

Note: W3C states the criterion does not apply to controls without a visible text label, and headings, instructions and group labels are not normally treated as the label.

Steps are based on W3C’s Understanding WCAG 2.2: 2.5.3 Label in name, which explains the intent, examples and exceptions in full. A manual check by you is a first look, not an audit: it does not make a site conformant and is not a substitute for testing by an experienced auditor with real assistive technology users. How we separate what a machine can and cannot check is explained in our methodology; for a full audit, see the directory of accessibility agencies.

What automation checks

One axe-core rule tests failures of this criterion. Our scanner runs it on every page it visits:

  • label-content-name-mismatch

What automation cannot prove

An automated test finds some failures of WCAG 2.5.3; it cannot confirm the criterion is met. Whether the result actually works for people — in context, with real content — is a judgement call that needs a human auditor. Nothing on this page is a statement of conformance or legal advice. The full map of what our scanner covers and where it stops is on what our scanner checks.

Related guides

Does your site pass this check?

Free instant scan. No signup required. WCAG 2.5.3 is one of the criteria it tests.

Scan website