diffsnack
HTML Guess the result Level 5

HTML exercise: Images: alt, width and height — What can happen while this image loads?

The exercise

What can happen while this image loads?

1<a href="nemesis.html">
2 <img src="nemesis.jpeg"
3 alt="Nemesis album cover"
4 loading="lazy">
5 <h3>Nemesis</h3>
6 <p>Band A</p>
7</a>
  1. The text below can jump down
  2. Screen readers stay silent
  3. The image never loads
  4. The image is shown twice

Solution

Answer: The text below can jump down

This <img> has no width and height, so the browser does not know how much space to keep for it. When the image arrives, the content below can suddenly jump down.

Play this exercise Learn the concept: Images: alt, width and height