Accessibility: alt Text
Concept Check Beginner
Question
Why is the alt attribute important on <img> elements?
Hint
Think about what happens when the image cannot be seen.
Explanation
The alt attribute provides alternative text that screen readers announce to visually impaired users, and that browsers display when an image fails to load. It is essential for accessibility and is required by the HTML spec for <img> elements.
Related Resources
Related Lessons
Look up unfamiliar terms
A beginner-friendly glossary explains jargon in plain English — variables, functions, DOM, Promise, and more.
Decode error messages
Plain-English explanations of common errors — what they mean, why they happen, and how to fix them.
Build real projects
Apply what you learned by building guided projects with starter code and solutions.