Use <img> elements with descriptive alt text and filenames; Google doesn't index CSS images

Impact Evidence Applies to Last checked
Medium Official guidance Google, Bing, Gemini Oct 30, 2026

Why it matters

Google calls alt text the most important image attribute and discovers images through the src of <img> elements, including inside <picture>. Background images set in CSS are not indexed. Google's 2026 AI guide also recommends supporting text with relevant images and video for multimodal answers.

How to do it

  1. Write alt text that describes the image in the context of the page, without stuffing keywords
  2. Rename files like IMG00023.jpg to short descriptive names
  3. Use <img> for meaningful images and keep CSS backgrounds for decoration only
  4. Add an image sitemap if images are on a CDN or loaded late

Sources

Change history

Date Change What changed
Oct 30, 2026 Added Added to the rulebook.

Checked against its sources every Monday. Only content changes are listed.