← Images with img, src and alt lesson New set →

HTML Worksheet: Images and Alt Text

HTML and CSS lesson 7: Images with img, src and alt · Set 629 · 40 questions
TalentJR

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. 1.🖼️ Which picture file does the browser load?
    <img src="map.png" alt="Map of India" width="50">
    (a) cake.jpg (b) map.png (c) Map of India (d) dog.jpg
  2. 2.🖼️ Which attribute of <img> is read by screen readers? (a) alt (b) src (c) height (d) width
  3. 3.🖼️ Which attribute of <img> describes the picture? (a) alt (b) width (c) height (d) src
  4. 4.🖼️ Which attribute of <img> tells which image to load? (a) src (b) alt (c) width (d) height
  5. 5.🖼️ How many pixels wide is the picture drawn?
    <img src="tiger.jpg" alt="A tiger asleep" width="200">
  6. 6.🖼️ Why do we add alt text to an image? (a) to make it bigger (b) to load it faster (c) to colour it (d) to describe the image
  7. 7.🖼️ The picture cannot load. Which text does the browser show instead?
    <img src="tiger.jpg" alt="A tiger asleep" width="50">
    (a) A red kite (b) width (c) A tiger asleep (d) tiger.jpg
  8. 8.True or false: in <img>, width shows if the image fails. (a) False (b) True
  9. 9.True or false: in <img>, src names the picture file. (a) False (b) True
  10. 10.🖼️ Which attribute of <img> sets how wide it is? (a) src (b) height (c) alt (d) width
  11. 11.🖼️ How many pixels wide is the picture drawn?
    <img src="map.png" alt="Map of India" width="250">
  12. 12.🖼️ Which picture file does the browser load?
    <img src="moon.png" alt="The full moon" width="300">
    (a) moon.png (b) fort.jpg (c) The full moon (d) bus.jpg
  13. 13.🖼️ The picture cannot load. Which text does the browser show instead?
    <img src="moon.png" alt="The full moon" width="250">
    (a) Our school bus (b) The full moon (c) width (d) moon.png
  14. 14.🖼️ Which picture file does the browser load?
    <img src="kite.png" alt="A red kite" width="400">
    (a) kite.png (b) map.png (c) A red kite (d) cake.jpg
  15. 15.🖼️ Which attribute of <img> names the picture file? (a) width (b) alt (c) height (d) src
  16. 16.🖼️ Does <img> need a closing tag? (a) Yes (b) No
  17. 17.🖼️ The picture cannot load. Which text does the browser show instead?
    <img src="tiger.jpg" alt="A tiger asleep" width="350">
    (a) tiger.jpg (b) A tiger asleep (c) A red kite (d) width
  18. 18.🖼️ How many pixels wide is the picture drawn?
    <img src="tiger.jpg" alt="A tiger asleep" width="150">
  19. 19.🖼️ Which attribute of <img> shows if the image fails? (a) width (b) src (c) height (d) alt
  20. 20.🖼️ Which attribute of <img> sets how tall it is? (a) width (b) src (c) alt (d) height
  21. 21.🖼️ Which picture file does the browser load?
    <img src="fort.jpg" alt="An old fort" width="200">
    (a) fort.jpg (b) An old fort (c) tiger.jpg (d) kite.png
  22. 22.🖼️ How many pixels wide is the picture drawn?
    <img src="fort.jpg" alt="An old fort" width="350">
  23. 23.🖼️ The picture cannot load. Which text does the browser show instead?
    <img src="fort.jpg" alt="An old fort" width="50">
    (a) fort.jpg (b) A tiger asleep (c) width (d) An old fort
  24. 24.🖼️ Which tag puts a picture on a page? (a) <p> (b) <pic> (c) <a> (d) <img>
  25. 25.🖼️ The picture cannot load. Which text does the browser show instead?
    <img src="moon.png" alt="The full moon" width="350">
    (a) Our school bus (b) The full moon (c) moon.png (d) width
  26. 26.🖼️ How many pixels wide is the picture drawn?
    <img src="kite.png" alt="A red kite" width="350">
  27. 27.True or false: in <img>, alt shows if the image fails. (a) False (b) True
  28. 28.True or false: in <img>, alt is read by screen readers. (a) False (b) True
  29. 29.🖼️ The picture cannot load. Which text does the browser show instead?
    <img src="fort.jpg" alt="An old fort" width="350">
    (a) A tiger asleep (b) width (c) An old fort (d) fort.jpg
  30. 30.🖼️ Which picture file does the browser load?
    <img src="map.png" alt="Map of India" width="400">
    (a) dog.jpg (b) map.png (c) cake.jpg (d) Map of India
  31. 31.True or false: in <img>, height describes the picture. (a) True (b) False
  32. 32.🖼️ The picture cannot load. Which text does the browser show instead?
    <img src="dog.jpg" alt="A happy dog" width="400">
    (a) The full moon (b) dog.jpg (c) A happy dog (d) width
  33. 33.True or false: in <img>, height sets how tall it is. (a) True (b) False
  34. 34.🖼️ How many pixels wide is the picture drawn?
    <img src="kite.png" alt="A red kite" width="50">
  35. 35.🖼️ How many pixels wide is the picture drawn?
    <img src="fort.jpg" alt="An old fort" width="100">
  36. 36.🖼️ Which picture file does the browser load?
    <img src="kite.png" alt="A red kite" width="150">
    (a) map.png (b) cake.jpg (c) A red kite (d) kite.png
  37. 37.🖼️ The picture cannot load. Which text does the browser show instead?
    <img src="map.png" alt="Map of India" width="150">
    (a) width (b) Birthday cake (c) Map of India (d) map.png
  38. 38.True or false: in <img>, alt describes the picture. (a) False (b) True
  39. 39.🖼️ The picture cannot load. Which text does the browser show instead?
    <img src="moon.png" alt="The full moon" width="400">
    (a) Our school bus (b) moon.png (c) The full moon (d) width
  40. 40.🖼️ The picture cannot load. Which text does the browser show instead?
    <img src="map.png" alt="Map of India" width="250">
    (a) Birthday cake (b) width (c) Map of India (d) map.png

Answer key

  1. map.png
  2. alt
  3. alt
  4. src
  5. 200
  6. to describe the image
  7. A tiger asleep
  8. False
  9. True
  10. width
  11. 250
  12. moon.png
  13. The full moon
  14. kite.png
  15. src
  16. No
  17. A tiger asleep
  18. 150
  19. alt
  20. height
  21. fort.jpg
  22. 350
  23. An old fort
  24. <img>
  25. The full moon
  26. 350
  27. True
  28. True
  29. An old fort
  30. map.png
  31. False
  32. A happy dog
  33. True
  34. 50
  35. 100
  36. kite.png
  37. Map of India
  38. True
  39. The full moon
  40. Map of India

Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids