Updated 2026-10-20

Image alt text for SEO and accessibility

The alt attribute is the text alternative for an image. Screen readers read it aloud, browsers show it when the image fails to load, and search engines use it to understand what the image shows.

Find images without alt

grep -rhoP --include='*.html' '<img(?![^>]*alt=)[^>]*>' dist

That needs GNU grep for -P (or use rg -P). Browser tools such as Lighthouse's accessibility audit list them too, and the free site checker counts images without alt across up to 50 pages of your live site.

How Headlark writes alt text

Where it applies

Try it

The free plan covers one site and 25 pages. Add your site, copy its secret key, and your next build ships with SEO.