Images · Image loading

Background image

The image on this page is added with a CSS background, so it cannot carry alt text and search engines do not index it as an image.

How this page is built

The grey test card below is not an img element. It is a CSS background on an empty element, so it has no alt text and does not appear in the page's list of images.

Why it matters

Search engines index images that are in img elements, with a src and alt text. Images added through CSS backgrounds are usually treated as decoration and not indexed at all.

They also cannot carry alt text, so if a background image carries meaning, screen reader users miss it completely.

How to check it

Crawl tools that render pages can report CSS background images. In browser developer tools, inspect the element and look for background-image in its styles.

How to fix it

Use an img element for any image that carries meaning or should appear in image search, with descriptive alt text. Keep CSS backgrounds for purely decorative images.

Back to all tests