CriticalWCAG 1.1.1 · Level AWCAG 4.1.2 · Level A
input-image-altImage 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
- 1.1.1 Non-text Content (Level A). Understanding 1.1.1
- 4.1.2 Name, Role, Value (Level A). Understanding 4.1.2