Ensure <input type="image"> Elements Have Alternate Text

Yotam Flohr
Researcher
Blind Hearing Mobility
WCAG 2.1 Level A

Written and researched for humans by humans

Yotam Flohr
Researcher
Ritvik Shrivastava
Expertly reviewed by
Comments: 0
Your entire domain
Get detailed instructions on how to resolve every accessibility issue on your website

WCAG requires all <input type=”image”> elements to have alternate text.

Why It Matters

An <input type=”image”> button must have alternative text in order for screen reader users to know the purpose of the button. Even if the image contains text, alternative text is still required. This is because screen readers work at a code level. 

Fixing the Issue

Check that any <input type=”image”> has an alt, aria-label or aria-labelledby attribute that isn’t empty.

Image buttons use the alt attribute as the label. A clear alt attribute value must be provided and represent the function of the button.

Good Code Example

Code example
<input type="image" src="submit.png" name="submit" height="36" width="113" alt="Submit"> Copy

Test Cases

For more examples, visit W3C’s GitHub’s ATC Rules library