Alt text examples › Decorative images

Alt Text Examples for Decorative Images (When to Use alt="")

The best alt text for a decorative image is no text at all: alt="" tells screen readers to skip it. The mistake goes both ways: describing ornaments wastes the listener's time, while marking a meaningful image as decorative hides information. The test: if you removed the image, would the page lose anything? If not, it is decorative.

8 examples: bad vs good alt text

#The imageBad altGood altWhy
1Abstract gradient blob behind a hero headlineblue and purple gradient shapealt=""Pure visual styling. Ideally a CSS background, otherwise empty alt.
2Divider swirl between blog sectionsdivideralt=""Layout ornament: announcing it interrupts reading.
3Stock photo of a laptop on a desk at the top of a generic blog postlaptopalt=""When the photo adds no information to the article (mood only), empty alt is correct. If the article is about that laptop, describe it.
4Image with no alt attribute at all(alt attribute missing)alt=""Missing is not the same as empty: screen readers may read "DSC_0042 dot JPG". Always write the attribute.
5Icon next to a text link that already says "Download PDF"PDF iconalt=""The adjacent text carries the meaning; the icon would be announced twice.
6Background texture image used as an <img> in a cardtexturealt=""Ornamental texture carries no content.
7Photo of a chef plating a dish on a restaurant homepage, next to the text "Seasonal tasting menu"alt=""Chef plating a seasonal tasting dish of scallops and peasNot decorative: it shows what the restaurant serves. Marking informative images as decorative is the opposite mistake.
8Spacer GIF in an old email templatespaceralt=""Layout hacks must be invisible to assistive tech.

The WCAG rule that applies

WCAG 1.1.1 Non-text Content (Level A): pure decoration must be implemented so assistive technology can ignore it, which means alt="" (empty, not missing). A missing alt attribute makes many screen readers read the file name instead. The full requirement is explained in our guide to WCAG 1.1.1 alt text requirements.

Need alt text for your own images?

Upload a photo to the free generator and get a draft in seconds (3 images a day, no signup). On WordPress, Alt Text BYOK writes it automatically on upload and fixes your whole media library in bulk, using your own AI key.

Try the free alt text generator Alt Text BYOK for WordPress

More alt text examples

All alt text examples, with the general rules

← See all products

Terms · Privacy · Refunds (7-day money-back) · Contact