← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 464 · 40 questions
TalentJR

Code tip (Read the code like a browser): Find the topic of the question: tags, headings, lists, links, images, structure or comments. Read the code line by line, the way a browser would. Count carefully: tags opened and closed, items, lines, paragraphs.

NameDateTime takenScore ___ / 40
  1. 1.📋 Which list suits a shopping list in any order? (a) <ul> (b) <br> (c) <hr> (d) <ol>
  2. 2.💬 How many paragraphs show on the page?
    <!-- <p>The red kite</p> -->
    <!-- <p>Hello, world!</p> -->
    <p>I love mangoes.</p>
    <!-- <p>Rain today</p> -->
  3. 3.🔠 How many heading levels does HTML have? (a) 3 (b) 4 (c) 10 (d) 6
  4. 4.💬 Can anyone read your comments by viewing the page source? (a) No (b) Yes
  5. 5.💬 How many paragraphs show on the page?
    <p>Hello, world!</p>
    <!-- <p>Cricket is fun.</p> -->
    <!-- <p>The red kite</p> -->
  6. 6.💾 A web page file usually ends with which extension? (a) .mp3 (b) .txt (c) .png (d) .html
  7. 7.📝 On how many lines does the browser show this paragraph?
    <p>Birds sing<br>Sky is blue<br>Stars shine<br>Roses are red</p>
  8. 8.Which of these is an empty tag? (a) <h1> (b) <title> (c) <li> (d) <input>
  9. 9.🔠 Which heading shows the BIGGEST text: <h3>, <h5>, <h1> or <h6>? (a) <h1> (b) <h3> (c) <h5> (d) <h6>
  10. 10.🔗 Which tag makes a clickable link? (a) <a> (b) <link> (c) <p> (d) <img>
  11. 11.💬 How many paragraphs show on the page?
    <!-- <p>Fun facts</p> -->
    <p>Rain today</p>
    <p>The red kite</p>
  12. 12.🖼️ Which attribute of <img> tells which image to load? (a) height (b) src (c) alt (d) width
  13. 13.Which of these is an opening tag? (a) </h1> (b) <li> (c) </b> (d) </title>
  14. 14.📋 How many items does this list show?
    <ol>
      <li>Papaya</li>
      <li>Mango</li>
      <li>Banana</li>
      <li>Guava</li>
      <li>Orange</li>
    </ol>
  15. 15.Which of these is an opening tag? (a) <b> (b) </li> (c) </body> (d) </h1>
  16. 16.📝 How many paragraphs does this code make?
    <p>Good morning!</p>
    <h2>My pets</h2>
    <p>Cricket is fun.</p>
    <p>Good morning!</p>
  17. 17.🔠 Which heading shows the BIGGEST text: <h1>, <h6>, <h3> or <h2>? (a) <h1> (b) <h6> (c) <h2> (d) <h3>
  18. 18.True or false: HTML on its own can show paragraphs. (a) True (b) False
  19. 19.📄 Where does <style> go: in the head or in the body? (a) in the head (b) in the body
  20. 20.📝 How many paragraphs does this code make?
    <p>The red kite</p>
    <h2>My pets</h2>
    <p>Rain today</p>
  21. 21.📄 Where does <link rel="stylesheet"> go: in the head or in the body? (a) in the body (b) in the head
  22. 22.📋 How many items does this list show?
    <ol>
      <li>Jamun</li>
      <li>Orange</li>
      <li>Guava</li>
      <li>Banana</li>
      <li>Mango</li>
    </ol>
  23. 23.Which of these is an opening tag? (a) </body> (b) </li> (c) </h1> (d) <body>
  24. 24.🖼️ The picture cannot load. Which text does the browser show instead?
    <img src="map.png" alt="Map of India" width="100">
    (a) Map of India (b) width (c) Birthday cake (d) map.png
  25. 25.📋 How many items does this list show?
    <ol>
      <li>Papaya</li>
      <li>Orange</li>
      <li>Banana</li>
      <li>Litchi</li>
      <li>Jamun</li>
      <li>Grapes</li>
    </ol>
  26. 26.🔠 Which heading shows the BIGGEST text: <h2>, <h1>, <h6> or <h5>? (a) <h5> (b) <h1> (c) <h6> (d) <h2>
  27. 27.True or false: <title> goes in the head. (a) True (b) False
  28. 28.📝 How many paragraphs does this code make?
    <p>My pets</p>
    <p>Our school trip</p>
    <p>Fun facts</p>
    <p>Hello, world!</p>
    <p>I love mangoes.</p>
  29. 29.🖼️ Which attribute of <img> describes the picture? (a) height (b) alt (c) width (d) src
  30. 30.True or false: in <img>, width names the picture file. (a) False (b) True
  31. 31.💬 Does the browser show comments on the page? (a) Yes (b) No
  32. 32.💬 Which text will NOT show on the page?
    <p>The red kite</p>
    <p>Good morning!</p>
    <!-- <p>Fun facts</p> -->
    (a) Fun facts (b) The red kite (c) Good morning!
  33. 33.🖼️ Which tag puts a picture on a page? (a) <pic> (b) <img> (c) <p> (d) <a>
  34. 34.True or false: in <img>, src is read by screen readers. (a) True (b) False
  35. 35.🔠 Which heading shows the BIGGEST text: <h6>, <h1>, <h2> or <h3>? (a) <h3> (b) <h6> (c) <h2> (d) <h1>
  36. 36.💬 Which text will NOT show on the page?
    <p>Good morning!</p>
    <!-- <p>Fun facts</p> -->
    <p>Hello, world!</p>
    <p>My best friend</p>
    (a) Fun facts (b) Hello, world! (c) Good morning! (d) My best friend
  37. 37.🔍 One closing tag is missing. Which one?
    <b>Good morning!</b>
    <h3>My pets</h3>
    <em>The red kite
    (a) </h3> (b) </i> (c) </em> (d) </b>
  38. 38.🔗 Where does this link open?
    <a href="about.html" target="_blank">Play games</a>
    (a) in a new tab (b) in the same tab
  39. 39.🖼️ The picture cannot load. Which text does the browser show instead?
    <img src="bus.jpg" alt="Our school bus" width="50">
    (a) An old fort (b) width (c) Our school bus (d) bus.jpg
  40. 40.🔍 Which is the odd one out? (a) opens web pages for us (b) shows pages from the web (c) answers page requests (d) turns HTML into a page

Answer key

  1. <ul>
  2. 1
  3. 6
  4. Yes
  5. 1
  6. .html
  7. 4
  8. <input>
  9. <h1>
  10. <a>
  11. 2
  12. src
  13. <li>
  14. 5
  15. <b>
  16. 3
  17. <h1>
  18. True
  19. in the head
  20. 2
  21. in the head
  22. 5
  23. <body>
  24. Map of India
  25. 6
  26. <h1>
  27. True
  28. 5
  29. alt
  30. False
  31. No
  32. Fun facts
  33. <img>
  34. False
  35. <h1>
  36. Fun facts
  37. </em>
  38. in a new tab
  39. Our school bus
  40. answers page requests

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