How does context change image alt text?

Context changes the right description. A bird's exact type can be brief on a parks website and detailed on a website about birds.

Alt text examples for each kind of image

Image useWhat to write
An informative photoDescribe the detail a reader needs in this context. A product photo might say: Blue backpack with a side pocket.
A decorative flourishUse an empty alt attribute when the image adds no information.
An image that acts as a linkName the destination or action. For a magnifying-glass search button, Search is more useful than Magnifying glass.
A chart with detailed dataGive a short description in the alt text and put the full information elsewhere on the page, in text or a table.

Leave words like image of out of your alt text

Start with the useful information. W3C's image guidance explains why words such as image of are usually unnecessary: assistive technology already identifies the element as an image.

Frequently asked questions

Is missing alt text the same as empty alt text?

No. With no alt attribute, some screen readers read out the image's file name instead. An empty alt="" tells assistive technology to skip a decorative image. W3C's image decision tree helps you decide which an image needs.