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

When to Use an Empty alt

When should an image have an empty alt="" attribute?

Answer options

  • When the image is decorative and carries no informational content
  • Never - every image must have a descriptive alt
  • Always - screen readers skip images with an empty alt
  • When you don't have time to write a description

You can check the correct answer by solving this task in the CodeWorlds game.