Skip to content

Rule · Accessibility

Image button has no alt text

a11y/input-image-alterrorvoid a11yupdated

Why it matters

An image button without alt text is announced by its file name or not at all, so screen-reader users cannot tell what it submits.

How to fix it

Add alt text that describes the action (not the picture).

Example

tsx
<input type="image" src="/search.svg" alt="Search">

References

void a11y reports 48 rules in this category. WCAG 2.2 AA through axe-core, plus checks axe can't do alone: visible keyboard focus, 24/44px target size on mobile, 320px reflow and disabled zoom.