Coding task · HTML and CSS course · Module 10: Accessibility (a11y)

Accessible Image Descriptions with alt

Informational images need a descriptive alt attribute. Decorative images have an empty alt="". Icon buttons need text. SVGs need role="img" with title and desc.

Task

Add alt to an informational image with figcaption, alt="" to a decorative one, text to an icon button, and role="img" with title/desc to an SVG.