Alt text examples › Icons & buttons

Alt Text Examples for Icons, Buttons and Linked Images

When an image is a button or the only content of a link, it is functional: its alt text must say what happens when you activate it, not what the icon looks like. "Magnifying glass" is a picture; "Search" is a function.

8 examples: bad vs good alt text

#The imageBad altGood altWhy
1Magnifying glass icon that submits a search formmagnifying glassSearchDescribe the function. Users need to know what the button does.
2Shopping cart icon with a badge showing 3cart iconCart, 3 itemsInclude the state the badge shows.
3Twitter/X bird icon linking to the company profilebirdAcme on XSocial icons are links: name the destination.
4Hamburger (three lines) menu iconthree horizontal linesMenuName the control, not its shape.
5Printer icon that prints the pageprinterPrint this pageAction plus object is clearest.
6Thumbnail image linking to a full articlephoto of mountainsRead: 10 easy hikes near DenverA linked image's alt is the link text. Say where it leads.
7Trash can icon in each row of a tabledeleteDelete invoice #1042Repeated icons need to be distinguishable: add which item they act on.
8Star icons showing a 4-of-5 rating (not clickable)star star star starRated 4 out of 5Read the value, not each star.

The WCAG rule that applies

WCAG 1.1.1 Non-text Content (Level A), 2.4.4 Link Purpose (Level A) and 4.1.2 Name, Role, Value (Level A): an icon-only control must have an accessible name that describes its purpose. 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