Accessibility · Names and labels

Button without discernible text

A button on this page shows only an icon that is hidden from assistive technology, so the button has no accessible name.

How this page is built

The button below shows a cross. The cross is hidden with aria-hidden, and the button has no other text or label.

Why it matters

Every button needs a name that says what it does. Icon-only buttons, such as close, search and menu buttons, are the most common failure. Screen readers announce just “button”, so users have to guess.

Accessibility problems matter for search too. Search engines read the same code that screen readers read. Many crawl tools now run accessibility checks next to their SEO checks. A page that works for everyone is easier to use, and people stay on it for longer.

How to check it

Run an automated checker such as axe DevTools, Lighthouse or WAVE, or a crawler with accessibility checks, on this page. axe reports this under the rule button-name.

How to fix it

Add text inside the button, which can be visually hidden, or an aria-label such as “Close”.

Back to all tests