Language: EN

Image buttons without alternative text

Message shown by axe and Lighthouse: Image buttons must have alternative text · input-image-alt · WCAG 1.1.1, 4.1.2

What it means and why it matters

<input type="image"> buttons need alt text to announce their action (WCAG 1.1.1).

How to fix it

Add an alt attribute that describes the action, e.g. alt="Search".

Code example

Before

<input type="image" src="/img/search.png">

After

<input type="image" src="/img/search.png" alt="Search">

Find this error on your website

Run a free check of any page — results in seconds, with fix instructions.

Check a page for free

All accessibility errors

Order a paid plan

Leave your email and we'll contact you as soon as the plan can be ordered.