Skip to content
Nazmul Nikhil
Menu

<input type="image"> Elements Do Not Have [alt] Text (PageSpeed Insights)

PageSpeed flags image submit buttons with no alt text. Here's how to describe what the button does.

Nazmul Nikhil

By

Head of SEO & Assistant Manager, Digital Marketing at Notionhive

Published 1 min read
<input type="image"> Elements Do Not Have [alt] Text (PageSpeed Insights)
Photo: William Thomas on Unsplash

In short

<input type="image"> is a submit button made from an image. Without alt text, screen readers can't say what it does. Add alt text that describes the action, not the picture: "Search," not "magnifying glass." Weight 10. A plain <button> with an SVG and aria-label is usually a better choice today.

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

This guide isn't affiliated with or endorsed by Google.

Sources and references

TAGSPageSpeed InsightsInput type image altImage button alt textInput-image-alt
Nazmul Nikhil

About the author

Nazmul Nikhil

Head of SEO & Assistant Manager, Digital Marketing at Notionhive

SEO and AI search consultant in Dhaka, Bangladesh, helping small and mid-size businesses in the USA, UK, Australia and Canada.

Need help with this?

Get it fixed with Technical SEO

I find the issues that cost you traffic and fix them, starting with the pages that matter most.

Keep reading

Related articles

All Page Speed & Core Web Vitals posts →

Get the next guide in your inbox

One email when a new SEO or AI search guide goes live.

Ready to grow?

Get a free audit of your website, or book a 30-minute call to talk through your goals.

Nazmul Hasan

Talk to Nazmul directly

Reply within 24h

WhatsApp +880 1682835118
nazmulnikhil@gmail.com