Violations
Button has no accessible name
critical Accessibility
WCAG 4.1.2
Regulation
European Accessibility ActHow common
Common, especially with icon-only buttons (hamburger menus, close buttons, action buttons).
What this means
A button on the page has no discernible text that screen readers can announce. The user hears “button” but does not know what the button does.
WCAG requirement
Success Criterion 4.1.2 — Name, Role, Value: all user interface components must have a name that can be programmatically determined.
Common causes
- Icon-only buttons with no text or
aria-label(hamburger menu, close X, shopping cart) - Buttons containing only an
<img>or<svg>with no alt text - Empty
<button>elements styled with CSS background images
How to fix
- Add visible text: the simplest and most robust solution
- Add
aria-label:<button aria-label="Open menu"><svg>...</svg></button> - Add
altto images inside buttons:<button><img src="cart.svg" alt="Shopping cart"></button> - Use
aria-labelledbywhen the label text exists elsewhere on the page
Check your website for this violation
Free scan — no registration required. Results in 30 seconds.
Scan now