Skip to main content
Raasta
CriticalWCAG 1.1.1 · Level AWCAG 4.1.2 · Level Ainput-image-alt

Image button has no alt text

An <input type="image"> without alt text is announced only as “button”. Add alt text that says what the button does, not what the picture looks like.

Who it hurts

Screen reader and voice control users.

Older themes use image inputs for search and “add to cart” buttons.

How to fix it

Pick your stack. Review every change before you ship it.

Before

<input type="image" src="search.png">

After

<input type="image" src="search.png" alt="Search">

Check it by hand too

Tab to each image button and check it is announced with its action.

Automated checks find a large share of accessibility problems, but not all of them. Passing this check does not on its own make a page compliant.

WCAG reference