Image buttons have no text alternative
Automated check input-image-alt, run with axe-core
- WCAG
- 1.1.1 Non-text Content, 4.1.2 Name, Role, Value (Level A)
- Severity
- Blocker: a task cannot be completed
- Typical effort
- Quick win, under 1 hour
- Category
- Forms and controls
Who this affects
Screen reader users and voice-control users.
Why it matters
An <input type="image"> without alt is announced as an unlabelled button. When it submits a search or an order, the user cannot complete the task.
How to fix it
Add an alt attribute describing the action, for example alt="Search".
Check your own website
The free scan tests 3 pages against WCAG 2.2 A and AA in about 30 seconds. No sign-up.
Related checks: Forms and controls
- Custom buttons, links or menu items have no accessible name
- Dialogs have no accessible name
- Custom input widgets have no accessible name
- Custom checkboxes, switches or radio buttons have no accessible name
- Form fields use invalid autocomplete values
- Buttons have no discernible text
- Form field has more than one label
- Form buttons have no accessible name