Image buttons must have alternative text
An `<input type="image">` is a button drawn as a picture. It needs alternative text that says what the button does, so screen reader and voice control users can use it.
| Rule ID | input-image-alt |
|---|---|
| Impact | Critical |
| Success criterion |
1.1.1 Non-text Content · A 4.1.2 Name, Role, Value · A |
| Standards | WCAG 2.0 · WCAG 2.1 · WCAG 2.2 · Section 508 · EN 301 549 |
| Fixed with a text: from the page or written by AI |
Example
<form action="/search">
<input type="search" name="q" aria-label="Search products">
<input type="image" src="magnifier.png">
</form>A screen reader announces “magnifier dot png, button” or just “button”.
<form action="/search">
<input type="search" name="q" aria-label="Search products">
<input type="image" src="magnifier.png" alt="Search">
</form>A screen reader announces “Search, button”.
Why it matters
An image button submits a form, so it is often the most important control in it: search, sign up, pay. Sighted users read its meaning from the picture. Screen reader users only hear its name, and without alternative text that is the file name or nothing at all. They may not dare to press a button that could just as well say “Delete”.
Voice control users activate buttons by saying their names. An unnamed image button forces them to fall back on slow workarounds such as numbered overlays or mouse grids. The same text also appears when the image fails to load.
How to fix it
Add an alt attribute that names the action, the way you would label a text button.
<input type="image" src="btn-subscribe.png" alt="Subscribe">
Describe the action, not the picture. A magnifying glass means “Search”, an arrow often means “Next” or “Submit”, a cart means “Add to basket”. Avoid “magnifying glass icon”.
Image contains text. If the picture shows words, use those words as the alt, so voice control users can say what they see.
Several similar buttons. Make each name specific:
<input type="image" src="cart.png" alt="Add Oslo bed to basket">
Consider a regular button. A <button> with an inline SVG and visible text is easier to style, scales well and works without image loading:
<button type="submit">
<svg aria-hidden="true" width="16" height="16"><use href="#icon-search"></use></svg>
Search
</button>
An aria-label or a title also names an image button, but alt is the standard, widely supported choice.
Checklist
- Add alt text to every input type="image".
- Name the action, not the picture.
- Use the exact words if the image shows text.
- Consider a button element with visible text instead.
How the check works
The check looks at every <input type="image">. It passes when the button has a non-empty alt, an aria-label, an aria-labelledby that points to text, a non-empty title, or an associated <label>. Otherwise it is reported. The check cannot judge whether the text describes the action, so review the wording by hand.
Resources
- Understanding 1.1.1 Non-text Content W3C
- Understanding 4.1.2 Name, Role, Value W3C
- W3C ACT rule 59796f W3C ACT
- Functional images W3C WAI
- Images tutorial W3C WAI
Updated October 27, 2026