Question · HTML and CSS course · Module 4: Flexbox

The alt attribute for decorative images

What value of the alt attribute should be set for a purely decorative image?

Answer options

  • An empty alt=""
  • alt with the image file name
  • alt="decorative image photo"
  • Omit the alt attribute entirely

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