Accessibility

How to Fix Missing Image Alt Attributes

Lighthouse flags images without alt attributes because screen readers cannot describe them to users. Learn how to write effective alt text for every image on your page.

What Lighthouse Is Telling You

When Lighthouse flags “Image elements do not have [alt] attributes,” it means one or more <img> tags on the page are missing the alt attribute entirely. This is a weight-10 accessibility audit — the highest weight in the Accessibility category. Missing alt text means screen reader users encounter images with no description, often hearing just the filename or URL.

This audit also appears in the SEO category. Search engines use alt text to understand image content and context. Missing alt text means missed indexing opportunities.

Why Alt Text Matters

The Old Way to Fix It

  1. Run Lighthouse or an accessibility scanner and collect the list of images without alt attributes
  2. For each image, open your editor and find the component that renders it
  3. Determine what the image conveys — is it informational, decorative, or functional?
  4. Write appropriate alt text: descriptive for informational images, empty (alt="") for decorative ones
  5. For images from a CMS, update the content model to require alt text on all image fields
  6. Re-run the audit to verify

The challenge scales with the number of images. A page with 30 images and no alt attributes means finding 30 components, understanding each image’s purpose, and writing 30 descriptions.

The Frontman Way

Tell Frontman to fix your Lighthouse issues. That is the entire workflow.

Frontman has a built-in Lighthouse tool. It runs the audit, reads the failing scores, fixes the underlying code, and re-runs the audit to verify the score went up. If issues remain, it keeps going — iterating through fixes and re-checks until the metrics pass. Because Frontman lives in the browser, it can see each image in context and write appropriate alt text — not just generic descriptions. You say “fix the Lighthouse issues on this page” and Frontman handles the rest.

Key Fixes

People Also Ask

What is the difference between alt text and title attributes?

The alt attribute provides a text alternative when the image cannot be seen (screen readers, broken images). The title attribute shows a tooltip on hover and is not reliably announced by screen readers. Use alt for accessibility — title is optional and supplementary.

Do background images need alt text?

CSS background-image elements do not have an alt attribute. If a background image is informational (contains text, data, or important content), use an <img> tag instead, or add role="img" and aria-label to the element.

How does alt text affect SEO?

Alt text helps search engines understand image content. Google uses it for Google Images ranking and as a secondary signal for page relevance. Descriptive, keyword-relevant alt text improves the chance of appearing in image search results.

Should I use AI-generated alt text?

AI-generated alt text (from services like Azure Computer Vision or Google Cloud Vision) provides a starting point, but it often misses context. A photo of your team in front of the office might get “group of people standing outside a building” — accurate but not useful. Review and adjust AI suggestions for context and accuracy.


You can use Frontman to automatically fix this and any other Lighthouse issue. Frontman runs the audit, reads the results, applies the fixes, and verifies the improvement — all inside the browser you are already working in. Get started with one install command.