Skip to content

unplugschool/images-alt

Repository files navigation

⚡ Image Alt Text 101 ⚡

Ed Rivas

@je92rivas | ed@unplug.studio


💡 Concepts

🎬 Functional Images

  • Initiate actions

  • Used in interactive elements

  • Icons, badges

💁🏻‍ Informative Images

  • Graphically represent concepts and information

  • Pictures, photos, illustrations

💅🏻 Decorative Images

  • Only add visual decoration
  • Do NOT convey information
  • Background images, borders, artsy things

🧭 Guide

  • Focus on describing FUNCTION or CONTENT

  • All images must have an alt attribute (even if empty)

  • Context is key when describing images

(1) Is this image interactive?

  • It's a functional image

  • Describe the action or result

Example of image as logo

Example of image as print icon

(2) Does this image include content?

  • It's an informative image

  • Describe the meaning and purpose

  • Avoid literal descriptions

  • No need to start with "Picture..." or "Photo..."

  • Surrounding context might be enough

Example of icons and labels

Example of illustration

Example of image transmitting an emotion

(3) No function and no content?

  • It's is a decorative image

  • Don't provide alt text: <img alt="">

  • Screen readers will skip completely

Example of border image

Example of image described by surrounding text

Example of image as logo


✨ Extras

Need help with accessibility?

Ed Rivas

@je92rivas | ed@unplug.studio

Releases

No releases published

Packages

No packages published