Testing image alternatives

Which of the images below have a meaningful, empty, or missing alt attribute?

Example 1: Meaningful alt text

This image has a meaningful alt attribute that describes the image content.

A person stands on a wide, smooth sand dune with gentle curves. The sand is illuminated by warm light, contrasting with darker areas in the background, suggesting a vast, open desert landscape.
HTML markup
<img src="image.jpg" alt="A person stands on a wide,
smooth sand dune with gentle curves. The sand is
illuminated by warm light, contrasting with darker
areas  in the background, suggesting a vast, open
desert landscape.">

Example 2: Empty alt — decorative image

This image is decorative. The alt attribute is present but empty, so assistive technologies will ignore it.

HTML markup
<img src="image.jpg" alt="">

Example 3: Empty alt — image inside a link

This image is inside a link that has visible text. The image is decorative in this context, so alt="" is correct — the link text provides the accessible name.

Visit our website
HTML markup
<a href="#">
  <img src="image.png" alt="">
  Visit our website
</a>

Example 4: Missing alt attribute

This image has no alt attribute at all. Assistive technologies may announce the filename instead.

HTML markup
<img src="image.jpg">