Skip to main content
All guides
Critical 4.1.2 Name, Role, Value · Level A

Give buttons a discernible name (WCAG 4.1.2)

Every button must have text or an accessible label so assistive tech can announce what it does.

Why it matters

An icon-only button with no label is announced as just "button" — the user has no idea whether it saves, deletes, or closes.

How to fix it

Add visible text, or an aria-label for icon-only buttons. Make sure the label says what the button does.

<!-- Fails -->
<button><svg>…</svg></button>

<!-- Passes -->
<button aria-label="Close dialog"><svg>…</svg></button>

Does your site have this issue?

Run a free scan to find out in seconds.

Related guides

These guides cover automated checks (~30–40% of WCAG criteria). A full audit also needs manual review.