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

Answer key

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

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