Home
Bookmarks
Leagues
LEARN
Courses
Career Paths
Assessments
Tutorials
Arcade
Glossary
GROW
Certifications
Log in
Glossary
Log inSign up
Courses/Accessible Interface Foundations/Meaning before appearance/
Exercise #6

The Alt Text Decision Tree: Informative vs Decorative

Writing alt text for images is not about mechanically describing every pixel. Follow W3C's Alt Text Decision Tree:

  1. Informative Images: Does the image convey information, data, or context not present in the surrounding text? Write concise, descriptive text: <img src="chart.png" alt="Line graph showing mobile signups increasing 42% in Q3">.
  2. Decorative Images: Is the image pure visual eye-candy, background decoration, or redundant with adjacent text? Provide an empty alt attribute: <img src="decorative-flower.svg" alt="">.
    • Notice: Omitting the alt attribute entirely is an error (the screen reader will read the raw file URL like 'image-slash-assets-slash-flower-dot-png'). An empty alt="" instructs the screen reader to silently ignore it.
  3. Functional Images (Icons): Is the image inside a button or link? The alt text must describe the action, not the picture: <button><img src="trash.svg" alt="Delete project"></button>.

Topics

Structure Carries Meaning: The Accessibility Tree
The Non-Negotiable Rule: Buttons vs Links
Document Outline: The Sacred Heading Hierarchy
Landmark Regions: Navigating Page Architecture
Form Labels: Why Placeholders Are Not Labels
The Alt Text Decision Tree: Informative vs Decorative
Lists as Navigation & Content Containers
The First Rule of ARIA: Do Not Use ARIA
Tabular Data: Making Tables Comprehensible
Master Challenge: Refactoring a 'Div-Soup' Component

From lesson

1

Meaning before appearance

Level 1 · Accessible interaction basics

Top contributors

Community contribution details will appear here once real learner activity is available.

Share