← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 33 · 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 heading shows the BIGGEST text: <h5>, <h1>, <h2> or <h4>? (a) <h2> (b) <h4> (c) <h1> (d) <h5>
  2. 2.🔗 Which attribute holds the address of a link? (a) id (b) src (c) href (d) alt
  3. 3.True or false: HTML on its own can make bullet lists. (a) False (b) True
  4. 4.True or false: in <img>, alt shows if the image fails. (a) False (b) True
  5. 5.📄 Can HTML on its own make headings? (a) No (b) Yes
  6. 6.True or false: in <img>, width describes the picture. (a) True (b) False
  7. 7.📋 What number does the browser show next to “Banana”?
    <ol>
      <li>Grapes</li>
      <li>Jamun</li>
      <li>Banana</li>
    </ol>
  8. 8.Which of these has a closing tag? (a) <h1> (b) <hr> (c) <img> (d) <input>
  9. 9.🌐 Which one colours code to help us? (a) a web browser (b) a web server (c) a code editor
  10. 10.🏷️ Is </p> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
  11. 11.Which of these has a closing tag? (a) <meta> (b) <img> (c) <b> (d) <hr>
  12. 12.Which of these goes in the head? (a) <img> (b) <h1> (c) <link rel="stylesheet"> (d) <ul>
  13. 13.🔢 In a basic web page file, which comes FIRST? (a) <body> (b) <!DOCTYPE html> (c) </html> (d) <html>
  14. 14.🖼️ 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.png (c) Map of India (d) width
  15. 15.💬 Which text will NOT show on the page?
    <p>The red kite</p>
    <p>Rain today</p>
    <!-- <p>I love mangoes.</p> -->
    (a) I love mangoes. (b) The red kite (c) Rain today
  16. 16.🔠 Which heading shows the BIGGEST text: <h1>, <h6>, <h5> or <h4>? (a) <h1> (b) <h5> (c) <h6> (d) <h4>
  17. 17.📋 Which list suits a shopping list in any order? (a) <hr> (b) <br> (c) <ul> (d) <ol>
  18. 18.Which of these is an opening tag? (a) </b> (b) </li> (c) <li> (d) </h1>
  19. 19.🔗 Which words do you click on?
    <a href="quiz.html">Play games</a>
    (a) quiz.html (b) href (c) About us (d) Play games
  20. 20.🔠 Which heading shows the SMALLEST text: <h5>, <h6>, <h1> or <h3>? (a) <h1> (b) <h6> (c) <h5> (d) <h3>
  21. 21.📄 Can HTML on its own add pictures to a page? (a) No (b) Yes
  22. 22.True or false: <img> goes in the head. (a) True (b) False
  23. 23.🔠 Which heading shows the SMALLEST text: <h1>, <h4>, <h2> or <h3>? (a) <h4> (b) <h2> (c) <h1> (d) <h3>
  24. 24.True or false: a code editor colours code to help us. (a) True (b) False
  25. 25.📋 What number does the browser show next to “Grapes”?
    <ol start="9">
      <li>Banana</li>
      <li>Papaya</li>
      <li>Orange</li>
      <li>Grapes</li>
    </ol>
  26. 26.💬 Does the browser show comments on the page? (a) Yes (b) No
  27. 27.📄 Can HTML on its own make links to pages? (a) No (b) Yes
  28. 28.🔠 How many heading levels does HTML have? (a) 6 (b) 3 (c) 4 (d) 10
  29. 29.📛 In <a href="x.html">, what is href? (a) a closing tag (b) an attribute (c) a comment (d) an element name
  30. 30.🔠 Which heading shows the BIGGEST text: <h3>, <h5>, <h2> or <h1>? (a) <h3> (b) <h5> (c) <h1> (d) <h2>
  31. 31.True or false: <ul> shows bullet points. (a) False (b) True
  32. 32.🔗 Which address opens when you click this link?
    <a href="news.html">Visit the site</a>
    (a) quiz.html (b) games.html (c) news.html (d) Visit the site
  33. 33.True or false: <meta charset="utf-8"> goes in the body. (a) False (b) True
  34. 34.True or false: <ul> is one item of a list. (a) False (b) True
  35. 35.📄 Can HTML on its own make a form? (a) Yes (b) No
  36. 36.🔢 In a basic web page file, which comes first: “<!DOCTYPE html>” or “<head>”? (a) <!DOCTYPE html> (b) <head>
  37. 37.True or false: <ol> shows 1, 2, 3 numbers. (a) False (b) True
  38. 38.📋 How many items does this list show?
    <ul>
      <li>Banana</li>
      <li>Guava</li>
      <li>Orange</li>
      <li>Grapes</li>
    </ul>
  39. 39.🔤 In “HTML”, what does the L stand for? (a) Language (b) Laptop (c) Line (d) Link
  40. 40.📝 Does <b> have a closing tag, or is it an empty tag? (a) an empty tag (b) has a closing tag

Answer key

  1. <h1>
  2. href
  3. True
  4. True
  5. Yes
  6. False
  7. 3
  8. <h1>
  9. a code editor
  10. a closing tag
  11. <b>
  12. <link rel="stylesheet">
  13. <!DOCTYPE html>
  14. Map of India
  15. I love mangoes.
  16. <h1>
  17. <ul>
  18. <li>
  19. Play games
  20. <h6>
  21. Yes
  22. False
  23. <h4>
  24. True
  25. 12
  26. No
  27. Yes
  28. 6
  29. an attribute
  30. <h1>
  31. True
  32. news.html
  33. False
  34. False
  35. Yes
  36. <!DOCTYPE html>
  37. True
  38. 4
  39. Language
  40. has a closing tag

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