← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 485 · 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 SMALLEST text: <h1>, <h4>, <h2> or <h5>? (a) <h2> (b) <h1> (c) <h5> (d) <h4>
  2. 2.True or false: <ul> goes in the head. (a) False (b) True
  3. 3.True or false: a web browser shows line numbers. (a) True (b) False
  4. 4.📋 How many items does this list show?
    <ol>
      <li>Grapes</li>
      <li>Guava</li>
      <li>Litchi</li>
    </ol>
  5. 5.🔠 Which heading shows the BIGGEST text: <h5>, <h4>, <h2> or <h1>? (a) <h2> (b) <h5> (c) <h1> (d) <h4>
  6. 6.🏷️ Which is the closing tag for <h1>? (a) </h1> (b) <h1> (c) <\h1> (d) <h1/>
  7. 7.True or false: a web browser saves our .html files. (a) False (b) True
  8. 8.🖼️ How many pixels wide is the picture drawn?
    <img src="bus.jpg" alt="Our school bus" width="150">
  9. 9.True or false: a web browser sends pages over the net. (a) False (b) True
  10. 10.🖼️ The picture cannot load. Which text does the browser show instead?
    <img src="kite.png" alt="A red kite" width="300">
    (a) A red kite (b) kite.png (c) Map of India (d) width
  11. 11.📄 What is the big heading shown on this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>Riya’s Recipes</title>
    </head>
    <body>
      <h1>Planets</h1>
      <p>Try this poha.</p>
    </body>
    </html>
    (a) Try this poha. (b) body (c) Planets (d) Riya’s Recipes
  12. 12.🔍 Which is the odd one out? (a) stores a website’s files (b) sends pages over the net (c) hosts websites online (d) opens web pages for us
  13. 13.💬 How many paragraphs show on the page?
    <p>Good morning!</p>
    <!-- <p>Our school trip</p> -->
    <p>My best friend</p>
    <p>Rain today</p>
    <p>The red kite</p>
  14. 14.💬 Which text will NOT show on the page?
    <p>Fun facts</p>
    <p>Hello, world!</p>
    <p>Rain today</p>
    <!-- <p>Cricket is fun.</p> -->
    (a) Rain today (b) Cricket is fun. (c) Hello, world! (d) Fun facts
  15. 15.📋 How many items does this list show?
    <ul>
      <li>Guava</li>
      <li>Litchi</li>
      <li>Banana</li>
      <li>Orange</li>
    </ul>
  16. 16.📄 Where does <title> go: in the head or in the body? (a) in the body (b) in the head
  17. 17.🌐 Which one colours code to help us? (a) a code editor (b) a web server (c) a web browser
  18. 18.🖼️ The picture cannot load. Which text does the browser show instead?
    <img src="cake.jpg" alt="Birthday cake" width="250">
    (a) A happy dog (b) Birthday cake (c) width (d) cake.jpg
  19. 19.💬 How many paragraphs show on the page?
    <!-- <p>I love mangoes.</p> -->
    <p>Hello, world!</p>
    <p>Good morning!</p>
    <!-- <p>Rain today</p> -->
    <p>My pets</p>
  20. 20.🔠 Which heading shows the BIGGEST text: <h1>, <h4>, <h6> or <h3>? (a) <h3> (b) <h6> (c) <h1> (d) <h4>
  21. 21.Which of these is a closing tag? (a) <h1> (b) </h1> (c) <title> (d) <b>
  22. 22.📋 Which list tag is an unordered list? (a) <li> (b) <ul> (c) <ol>
  23. 23.True or false: <li> is one item of a list. (a) True (b) False
  24. 24.🌐 Which one turns HTML into a page? (a) a code editor (b) a web browser (c) a web server
  25. 25.🔍 One closing tag is missing. Which one?
    <p>My pets
    <i>Hello, world!</i>
    <b>My best friend</b>
    (a) </b> (b) </h1> (c) </i> (d) </p>
  26. 26.📋 How many items does this list show?
    <ul>
      <li>Banana</li>
      <li>Orange</li>
    </ul>
  27. 27.🔢 In a basic web page file, which comes LAST? (a) </html> (b) <body> (c) </body> (d) <!DOCTYPE html>
  28. 28.True or false: <ul> is an unordered list. (a) True (b) False
  29. 29.🔍 Which is the odd one out? (a) opens web pages for us (b) has an address bar (c) hosts websites online (d) turns HTML into a page
  30. 30.📋 Does this list show bullets or numbers?
    <ul>
      <li>Orange</li>
      <li>Papaya</li>
      <li>Banana</li>
    </ul>
    (a) bullets (b) numbers
  31. 31.📝 On how many lines does the browser show this paragraph?
    <p>Rivers flow<br>Roses are red<br>Birds sing<br>Sky is blue</p>
  32. 32.True or false: in <img>, alt describes the picture. (a) True (b) False
  33. 33.Which of these has a closing tag? (a) <br> (b) <title> (c) <input> (d) <hr>
  34. 34.📝 On how many lines does the browser show this paragraph?
    <p>Roses are red<br>Stars shine<br>Birds sing</p>
  35. 35.📋 Does this list show bullets or numbers?
    <ol>
      <li>Banana</li>
      <li>Litchi</li>
    </ol>
    (a) bullets (b) numbers
  36. 36.Which of these goes in the head? (a) <a> (b) <p> (c) <link rel="stylesheet"> (d) <ul>
  37. 37.🔗 Which address opens when you click this link?
    <a href="about.html">Play games</a>
    (a) contact.html (b) https://example.com (c) Play games (d) about.html
  38. 38.🔗 Where does this link open?
    <a href="news.html" target="_blank">School news</a>
    (a) in the same tab (b) in a new tab
  39. 39.Which of these is an opening tag? (a) </b> (b) <b> (c) </p> (d) </body>
  40. 40.🏷️ What does a closing tag have that an opening tag does not? (a) a dollar $ (b) a dot . (c) a hash # (d) a slash /

Answer key

  1. <h5>
  2. False
  3. False
  4. 3
  5. <h1>
  6. </h1>
  7. False
  8. 150
  9. False
  10. A red kite
  11. Planets
  12. opens web pages for us
  13. 4
  14. Cricket is fun.
  15. 4
  16. in the head
  17. a code editor
  18. Birthday cake
  19. 3
  20. <h1>
  21. </h1>
  22. <ul>
  23. True
  24. a web browser
  25. </p>
  26. 2
  27. </html>
  28. True
  29. hosts websites online
  30. bullets
  31. 4
  32. True
  33. <title>
  34. 3
  35. numbers
  36. <link rel="stylesheet">
  37. about.html
  38. in a new tab
  39. <b>
  40. a slash /

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