HTML Worksheet: Images and Alt Text
Code tip (File and words): <img src="file.jpg" alt="what it shows" width="200"> — no closing tag. src = which file to load; alt = words describing it; width / height = size in pixels. If the picture fails, the browser shows the alt text; screen readers read it aloud.
NameDateTime takenScore ___ / 40
-
1.🖼️ The picture cannot load. Which text does the browser show instead?
<img src="kite.png" alt="A red kite" width="200"> (a) kite.png (b) width (c) A red kite (d) Map of India - 2.True or false: in <img>, alt tells which image to load. (a) True (b) False
- 3.True or false: in <img>, width is read by screen readers. (a) False (b) True
-
4.🖼️ Which picture file does the browser load?
<img src="bus.jpg" alt="Our school bus" width="100"> (a) fort.jpg (b) bus.jpg (c) tiger.jpg (d) Our school bus -
5.🖼️ Which picture file does the browser load?
<img src="map.png" alt="Map of India" width="400"> (a) map.png (b) dog.jpg (c) cake.jpg (d) Map of India - 6.🖼️ Does <img> need a closing tag? (a) Yes (b) No
- 7.🖼️ Which attribute of <img> sets how tall it is? (a) src (b) width (c) alt (d) height
-
8.🖼️ How many pixels wide is the picture drawn?
<img src="moon.png" alt="The full moon" width="100"> - 9.🖼️ Which attribute of <img> shows if the image fails? (a) height (b) src (c) alt (d) width
-
10.🖼️ How many pixels wide is the picture drawn?
<img src="bus.jpg" alt="Our school bus" width="400"> -
11.🖼️ Which picture file does the browser load?
<img src="fort.jpg" alt="An old fort" width="250"> (a) tiger.jpg (b) fort.jpg (c) kite.png (d) An old fort -
12.🖼️ How many pixels wide is the picture drawn?
<img src="moon.png" alt="The full moon" width="150"> -
13.🖼️ How many pixels wide is the picture drawn?
<img src="moon.png" alt="The full moon" width="250"> -
14.🖼️ The picture cannot load. Which text does the browser show instead?
<img src="map.png" alt="Map of India" width="50"> (a) width (b) Birthday cake (c) map.png (d) Map of India - 15.True or false: in <img>, src shows if the image fails. (a) True (b) False
- 16.🖼️ Which attribute of <img> is read by screen readers? (a) src (b) height (c) alt (d) width
-
17.🖼️ Which picture file does the browser load?
<img src="fort.jpg" alt="An old fort" width="350"> (a) An old fort (b) kite.png (c) tiger.jpg (d) fort.jpg -
18.🖼️ The picture cannot load. Which text does the browser show instead?
<img src="map.png" alt="Map of India" width="250"> (a) map.png (b) width (c) Birthday cake (d) Map of India -
19.🖼️ The picture cannot load. Which text does the browser show instead?
<img src="dog.jpg" alt="A happy dog" width="50"> (a) width (b) A happy dog (c) The full moon (d) dog.jpg - 20.🖼️ Which attribute of <img> tells which image to load? (a) width (b) src (c) height (d) alt
-
21.🖼️ The picture cannot load. Which text does the browser show instead?
<img src="fort.jpg" alt="An old fort" width="300"> (a) fort.jpg (b) A tiger asleep (c) An old fort (d) width - 22.🖼️ Which tag puts a picture on a page? (a) <pic> (b) <p> (c) <img> (d) <a>
-
23.🖼️ How many pixels wide is the picture drawn?
<img src="dog.jpg" alt="A happy dog" width="50"> - 24.True or false: in <img>, alt is read by screen readers. (a) True (b) False
-
25.🖼️ How many pixels wide is the picture drawn?
<img src="kite.png" alt="A red kite" width="50"> - 26.True or false: in <img>, src is read by screen readers. (a) True (b) False
-
27.🖼️ The picture cannot load. Which text does the browser show instead?
<img src="map.png" alt="Map of India" width="100"> (a) Birthday cake (b) Map of India (c) map.png (d) width - 28.True or false: in <img>, width describes the picture. (a) True (b) False
-
29.🖼️ The picture cannot load. Which text does the browser show instead?
<img src="cake.jpg" alt="Birthday cake" width="300"> (a) A happy dog (b) Birthday cake (c) cake.jpg (d) width -
30.🖼️ The picture cannot load. Which text does the browser show instead?
<img src="cake.jpg" alt="Birthday cake" width="400"> (a) Birthday cake (b) width (c) cake.jpg (d) A happy dog - 31.True or false: in <img>, src sets how wide it is. (a) True (b) False
-
32.🖼️ Which picture file does the browser load?
<img src="tiger.jpg" alt="A tiger asleep" width="350"> (a) A tiger asleep (b) kite.png (c) tiger.jpg (d) map.png -
33.🖼️ How many pixels wide is the picture drawn?
<img src="cake.jpg" alt="Birthday cake" width="100"> -
34.🖼️ The picture cannot load. Which text does the browser show instead?
<img src="dog.jpg" alt="A happy dog" width="200"> (a) A happy dog (b) width (c) dog.jpg (d) The full moon - 35.🖼️ Why do we add alt text to an image? (a) to colour it (b) to make it bigger (c) to load it faster (d) to describe the image
- 36.True or false: in <img>, src tells which image to load. (a) False (b) True
- 37.🖼️ Which attribute of <img> sets how wide it is? (a) src (b) width (c) alt (d) height
- 38.True or false: in <img>, height shows if the image fails. (a) True (b) False
- 39.True or false: in <img>, alt sets how wide it is. (a) True (b) False
-
40.🖼️ The picture cannot load. Which text does the browser show instead?
<img src="moon.png" alt="The full moon" width="50"> (a) Our school bus (b) moon.png (c) The full moon (d) width
Answer key
- A red kite
- False
- False
- bus.jpg
- map.png
- No
- height
- 100
- alt
- 400
- fort.jpg
- 150
- 250
- Map of India
- False
- alt
- fort.jpg
- Map of India
- A happy dog
- src
- An old fort
- <img>
- 50
- True
- 50
- False
- Map of India
- False
- Birthday cake
- Birthday cake
- False
- tiger.jpg
- 100
- A happy dog
- to describe the image
- True
- width
- False
- False
- The full moon
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids