WCAG 2.2 - All Success Criteria

Accessibility Checkpoints

Description

All non-text content that is presented to the user must have a text alternative that serves the equivalent purpose. This applies to images, icons, charts, graphs, audio, video, controls, and other non-text elements. The text alternative allows assistive technologies such as screen readers to convey the meaning of non-text content to users who cannot perceive it visually or aurally.

How To Test

  1. Identify all non-text content on the page: images, icons, buttons with images, charts, graphs, and multimedia.
  2. Inspect each image element and check whether an alt attribute is present.
  3. For informative images, verify the alt text accurately describes the content or function of the image.
  4. For decorative images, verify alt="" is used so screen readers skip them.
  5. For functional images (such as a logo linking to the home page or an icon button), verify the alt text describes the function, not just the appearance.
  6. Use a screen reader (such as NVDA with Firefox or JAWS with Chrome) to navigate to each image and confirm what is announced matches the expected text alternative.
  7. For complex images such as charts, confirm a full text description is available either in the alt attribute, in surrounding content, or via a linked description.

Testing Tools

Demo 1: Complex Images (Charts)

Non-text Content demo

This SVG chart has no accessible name. A screen reader announces nothing useful - it may say "image" or read a file path, conveying no chart data.

Code

Demo 2: Functional Icons and Buttons

Icon Buttons

Icon buttons without accessible names. Screen reader announces just "button" - no context about what each button does.

Code

Demo 3: Decorative vs. Informative Images

Product Listings

Product images with poor alt text, and a decorative divider that's announced unnecessarily:

High-Performance Laptop

$999.99

Budget Laptop

$399.99

Code

Demo 4: Image + Text Link Duplication

Image + text link duplication demo

The product image and product name are separate links to the same page. Screen readers announce the link twice — once for the image (with duplicate alt text) and once for the text. Found in 8 real-world audits.

Screen reader announces "Ergonomic Office Chair, link" twice — redundant and confusing.

Code

Demo 5: Star Rating Without Context

Star rating context demo

Star icons are announced individually or the numeric rating has no context. Screen reader may say "4.2" with no indication that it means stars or the scale. Found in multiple real-world audits.

★★★★☆ 4.2

Screen reader may announce "star star star star star 4.2" with no meaningful context.

Code

Fail Explanation

A failure occurs when an image, icon, or other non-text element has no accessible name, an empty alt attribute where one is needed, or a meaningless description such as "image" or a file name like "img0042.jpg". Screen reader users will either hear nothing, hear the file name, or hear a generic label that provides no useful information about the content or purpose of the element.

Pass Explanation

A passing implementation provides a concise, meaningful text alternative that conveys the same information or function as the non-text content. Decorative images that add no information use an empty alt attribute (alt="") so screen readers skip them entirely. Complex images such as charts include either a descriptive long-form text alternative nearby or are linked to a full description.

Notes

Images used purely for layout or decoration must use alt="" rather than being omitted entirely; omitting the alt attribute causes some screen readers to read out the file name. ARIA attributes such as aria-label and aria-labelledby can also provide text alternatives for non-image non-text elements such as SVGs and custom controls.

Techniques

WCAG techniques used in this demo: H37, H67, H2, G94, F38, ARIA10

Suggested Solutions & References

Curated from 91 real-world audit findings and official WCAG guidance.

Official W3C / WAI

MDN Web Docs

Guides