Accessibility · Images and media

Image button without alternate text

An image button on this page, an input of type image, has no alt attribute, so screen readers cannot tell users what it does.

How this page is built

The control below is an input type="image" that shows the test card. It has no alt attribute.

Why it matters

An image button works like a submit button, and its alt text is its name. Without alt, screen readers may read the file name or just “button”, and voice control users have no name to say.

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 input-image-alt.

How to fix it

Add an alt attribute that says what the button does, such as alt="Search", not what the image looks like.

Back to all tests