← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 767 · 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.📋 What number does the browser show next to “Papaya”?
    <ol>
      <li>Banana</li>
      <li>Mango</li>
      <li>Papaya</li>
      <li>Grapes</li>
    </ol>
  2. 2.True or false: HTML on its own can pick a random number. (a) True (b) False
  3. 3.📄 Where does the text of <title> appear? (a) nowhere (b) in a big heading (c) on the browser tab (d) at the bottom
  4. 4.🔠 How many heading levels does HTML have? (a) 4 (b) 3 (c) 10 (d) 6
  5. 5.True or false: <br> has a closing tag. (a) False (b) True
  6. 6.💬 How many paragraphs show on the page?
    <!-- <p>The red kite</p> -->
    <p>My best friend</p>
    <!-- <p>I love mangoes.</p> -->
    <p>Cricket is fun.</p>
  7. 7.🔤 In “HTML”, what does the L stand for? (a) Line (b) Link (c) Language (d) Laptop
  8. 8.📋 Which list tag is an ordered list? (a) <ol> (b) <ul> (c) <li>
  9. 9.🔠 Which heading shows the SMALLEST text: <h3>, <h6>, <h5> or <h4>? (a) <h5> (b) <h4> (c) <h6> (d) <h3>
  10. 10.🔍 One closing tag is missing. Which one?
    <i>I love mangoes.</i>
    <p>My pets
    <b>My best friend</b>
    (a) </i> (b) </b> (c) </h3> (d) </p>
  11. 11.🔍 Which is the odd one out? (a) answers page requests (b) sends pages over the net (c) shows pages from the web (d) hosts websites online
  12. 12.🔠 Which heading shows the BIGGEST text: <h2>, <h5>, <h1> or <h4>? (a) <h2> (b) <h4> (c) <h1> (d) <h5>
  13. 13.🔗 Which code links to about.html? (a) <a alt="about.html"> (b) <link about.html> (c) <a src="about.html"> (d) <a href="about.html">
  14. 14.📋 How many items does this list show?
    <ul>
      <li>Litchi</li>
      <li>Banana</li>
      <li>Guava</li>
      <li>Grapes</li>
      <li>Jamun</li>
    </ul>
  15. 15.🔠 Which heading shows the BIGGEST text: <h2>, <h1>, <h4> or <h3>? (a) <h3> (b) <h4> (c) <h2> (d) <h1>
  16. 16.🔍 One closing tag is missing. Which one?
    <h3>Hello, world!</h3>
    <em>My pets</em>
    <h2>Good morning!
    (a) </i> (b) </h3> (c) </em> (d) </h2>
  17. 17.🔠 How many headings are in this code?
    <h1>My best friend</h1>
    <h4>My pets</h4>
    <h4>Hello, world!</h4>
    <h3>My best friend</h3>
  18. 18.🌐 Which one hosts websites online? (a) a web browser (b) a code editor (c) a web server
  19. 19.🔠 How many headings are in this code?
    <h1>I love mangoes.</h1>
    <p>Rain today</p>
    <h3>Hello, world!</h3>
    <p>Hello, world!</p>
  20. 20.True or false: in <img>, width tells which image to load. (a) True (b) False
  21. 21.🔗 Where does this link open?
    <a href="news.html" target="_blank">School news</a>
    (a) in the same tab (b) in a new tab
  22. 22.🔠 How many headings are in this code?
    <h1>My best friend</h1>
    <h3>Cricket is fun.</h3>
    <p>Hello, world!</p>
    <h2>My best friend</h2>
    <h2>Cricket is fun.</h2>
  23. 23.🖼️ How many pixels wide is the picture drawn?
    <img src="moon.png" alt="The full moon" width="50">
  24. 24.🔗 Which address opens when you click this link?
    <a href="art.html">Art corner</a>
    (a) news.html (b) art.html (c) Art corner (d) quiz.html
  25. 25.🔠 How many headings are in this code?
    <h1>Cricket is fun.</h1>
    <h3>My pets</h3>
    <h2>Cricket is fun.</h2>
  26. 26.True or false: HTML on its own cannot add up two numbers. (a) False (b) True
  27. 27.🔠 Which heading shows the BIGGEST text: <h1>, <h2>, <h5> or <h6>? (a) <h5> (b) <h1> (c) <h6> (d) <h2>
  28. 28.True or false: <ul> lists steps in order. (a) True (b) False
  29. 29.📋 How many items does this list show?
    <ul>
      <li>Banana</li>
      <li>Grapes</li>
      <li>Mango</li>
    </ul>
  30. 30.🖼️ Which attribute of <img> names the picture file? (a) width (b) alt (c) src (d) height
  31. 31.🔗 Which address opens when you click this link?
    <a href="https://example.com">Art corner</a>
    (a) art.html (b) https://example.com (c) Art corner (d) maths.html
  32. 32.📋 How many items does this list show?
    <ul>
      <li>Banana</li>
      <li>Litchi</li>
      <li>Mango</li>
      <li>Grapes</li>
      <li>Jamun</li>
      <li>Orange</li>
    </ul>
  33. 33.🔗 What does target="_blank" do to a link? (a) opens it in a new tab (b) makes it bold (c) makes it blank (d) hides the link
  34. 34.🔠 How many headings are in this code?
    <h1>Hello, world!</h1>
    <h2>My best friend</h2>
    <h3>The red kite</h3>
    <h3>My best friend</h3>
  35. 35.🖼️ How many pixels wide is the picture drawn?
    <img src="fort.jpg" alt="An old fort" width="350">
  36. 36.🔍 One closing tag is missing. Which one?
    <h3>Fun facts</h3>
    <strong>My pets
    <i>My best friend</i>
    (a) </i> (b) </small> (c) </strong> (d) </h3>
  37. 37.🔢 In a basic web page file, which comes FIRST? (a) </body> (b) <head> (c) <!DOCTYPE html> (d) <html>
  38. 38.🔗 Which words do you click on?
    <a href="art.html">Maths fun</a>
    (a) Art corner (b) art.html (c) href (d) Maths fun
  39. 39.🔗 Which address opens when you click this link?
    <a href="contact.html">About us</a>
    (a) contact.html (b) maths.html (c) About us (d) https://example.com
  40. 40.Which of these is an opening tag? (a) </body> (b) </h1> (c) </p> (d) <body>

Answer key

  1. 3
  2. False
  3. on the browser tab
  4. 6
  5. False
  6. 2
  7. Language
  8. <ol>
  9. <h6>
  10. </p>
  11. shows pages from the web
  12. <h1>
  13. <a href="about.html">
  14. 5
  15. <h1>
  16. </h2>
  17. 4
  18. a web server
  19. 2
  20. False
  21. in a new tab
  22. 4
  23. 50
  24. art.html
  25. 3
  26. True
  27. <h1>
  28. False
  29. 3
  30. src
  31. https://example.com
  32. 6
  33. opens it in a new tab
  34. 4
  35. 350
  36. </strong>
  37. <!DOCTYPE html>
  38. Maths fun
  39. contact.html
  40. <body>

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