An icon button has a job, not just a picture. When the alt text describes the picture instead of the job, a screen reader announces magnifier instead of Search, and the user has to guess what the button does. The rule is simple: functional images get alt text that names the function.
Why this needs its own check
WebAIM’s alternative text guide says an image only has a function if it is linked or in a button, and the text alternative of a functional image should describe the functionality rather than the visual image. The guide gives the example of naming the action, such as Start search, instead of describing the magnifier picture.
What you need before you start
- The page open in a browser
- A list of icon-only buttons on the page
- An accessibility inspector to read alt text
Step 1 – List every icon-only button
Go through the page and write down each button that shows only an icon: search, close, menu, print, share, delete. Include icons inside links as well as buttons.
Step 2 – Read the alt text of each
Inspect each icon and read its alt attribute exactly. Note any icon with no alt attribute at all, which screen readers often announce as a file name.
Step 3 – Check the alt names the action
The alt text must say what the button does: Search, Close dialog, Print this page. Alt text that describes the picture, such as magnifier icon or X symbol, fails.
Worked example
Practice check: a fictional Fern and Field Florist shop page
The example below is fictional. Fern and Field Florist is an invented business used only as a practice case. No real customer, page, or product is shown. Treat it as a practice case, not as evidence about any real business.
| Part | What it should be | As shown | Result |
|---|---|---|---|
| Search icon button | Alt names the action | alt Search the shop | Pass |
| Close icon button | Alt names the action | alt X symbol | Fail – describes the picture |
| Print icon button | Alt names the action | alt Print this page | Pass |
| Delete icon button | Alt names the action | No alt attribute | Fail – no alt text |
Only 2 of the 4 checks pass: the search button and the print button. The two failures are the close button, whose alt text describes the picture, and the delete button, which has no alt text at all.
What to do when something is wrong
Change the close button alt to Close dialog and add alt Remove this item to the delete button. Do not describe the icon artwork in any functional alt text.
Expected result. We checked the WebAIM alternative text guide listed in Sources. We did not inspect a live Fern and Field Florist page. UNTESTED: no accessibility inspector was run on a real page; the practice table shows the expected result pattern for a page with two faulty functional icons.
Limits
- This check covers icon buttons and linked icons only. It does not cover informative images, decorative images, or images of text, which have their own checks.
Sources
- WebAIM – Alternative Text (checked 2026-11-29)
