← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 639 · 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.📄 Where does <table> go: in the head or in the body? (a) in the body (b) in the head
  2. 2.📋 What number does the browser show next to “Mango”?
    <ol start="5">
      <li>Banana</li>
      <li>Mango</li>
      <li>Guava</li>
      <li>Grapes</li>
      <li>Orange</li>
      <li>Jamun</li>
    </ol>
  3. 3.📄 What is the first line of an HTML5 page? (a) <html> (b) <head> (c) <body> (d) <!DOCTYPE html>
  4. 4.💬 Does the browser show comments on the page? (a) Yes (b) No
  5. 5.📋 How many items does this list show?
    <ol>
      <li>Papaya</li>
      <li>Jamun</li>
    </ol>
  6. 6.🖼️ Does <img> need a closing tag? (a) Yes (b) No
  7. 7.📋 Which list shows the steps of a recipe best? (a) <hr> (b) <ol> (c) <br> (d) <ul>
  8. 8.🖼️ The picture cannot load. Which text does the browser show instead?
    <img src="tiger.jpg" alt="A tiger asleep" width="350">
    (a) width (b) A red kite (c) A tiger asleep (d) tiger.jpg
  9. 9.🔠 Which heading shows the BIGGEST text: <h5>, <h2>, <h4> or <h1>? (a) <h1> (b) <h4> (c) <h5> (d) <h2>
  10. 10.True or false: <hr> has a closing tag. (a) False (b) True
  11. 11.🔗 Which words do you click on?
    <a href="contact.html">Play games</a>
    (a) contact.html (b) About us (c) href (d) Play games
  12. 12.Which of these is true of a web browser? (a) shows line numbers (b) is where we type code (c) colours code to help us (d) opens web pages for us
  13. 13.True or false: <ul> goes inside ul or ol. (a) True (b) False
  14. 14.📝 What does <hr> draw? (a) a table (b) a line across the page (c) a link (d) a picture
  15. 15.🔗 Which words do you click on?
    <a href="about.html">School news</a>
    (a) href (b) Take the quiz (c) about.html (d) School news
  16. 16.🔗 Which words do you click on?
    <a href="games.html">Art corner</a>
    (a) games.html (b) Art corner (c) href (d) School news
  17. 17.True or false: <p> goes in the head. (a) False (b) True
  18. 18.📋 Which list tag goes inside ul or ol? (a) <ol> (b) <ul> (c) <li>
  19. 19.📝 How many paragraphs does this code make?
    <p>Fun facts</p>
    <h2>Fun facts</h2>
    <p>My pets</p>
    <p>I love mangoes.</p>
    <h2>Good morning!</h2>
    <p>My best friend</p>
  20. 20.📝 On how many lines does the browser show this paragraph?
    <p>Roses are red<br>Birds sing<br>Rivers flow<br>Stars shine</p>
  21. 21.🌐 Which one has an address bar? (a) a web browser (b) a web server (c) a code editor
  22. 22.🖼️ Why do we add alt text to an image? (a) to describe the image (b) to colour it (c) to load it faster (d) to make it bigger
  23. 23.True or false: HTML on its own cannot make tables. (a) False (b) True
  24. 24.🔠 Which heading shows the SMALLEST text: <h5>, <h2>, <h3> or <h6>? (a) <h5> (b) <h2> (c) <h6> (d) <h3>
  25. 25.🔢 In a basic web page file, which comes LAST? (a) <head> (b) </html> (c) </head> (d) <body>
  26. 26.🔗 Which words do you click on?
    <a href="contact.html">Art corner</a>
    (a) href (b) Art corner (c) School news (d) contact.html
  27. 27.🔗 Where does this link open?
    <a href="art.html">Maths fun</a>
    (a) in a new tab (b) in the same tab
  28. 28.📋 What number does the browser show next to “Jamun”?
    <ol>
      <li>Papaya</li>
      <li>Grapes</li>
      <li>Jamun</li>
    </ol>
  29. 29.True or false: a web browser turns HTML into a page. (a) False (b) True
  30. 30.True or false: <p> is an empty tag. (a) True (b) False
  31. 31.🏷️ Which is the closing tag for <u>? (a) </u> (b) <u> (c) <\u> (d) <u/>
  32. 32.📝 Does <title> have a closing tag, or is it an empty tag? (a) has a closing tag (b) an empty tag
  33. 33.Which of these goes in the head? (a) <title> (b) <ul> (c) <a> (d) <img>
  34. 34.📋 Does this list show bullets or numbers?
    <ol>
      <li>Guava</li>
      <li>Banana</li>
      <li>Litchi</li>
    </ol>
    (a) bullets (b) numbers
  35. 35.📋 How many items does this list show?
    <ol>
      <li>Jamun</li>
      <li>Litchi</li>
      <li>Banana</li>
    </ol>
  36. 36.🔢 In a basic web page file, which comes first: “</html>” or “<html>”? (a) <html> (b) </html>
  37. 37.🔠 Which tag is used for the main title on a page? (a) <p> (b) <h1> (c) <br> (d) <h6>
  38. 38.📋 What number does the browser show next to “Grapes”?
    <ol>
      <li>Jamun</li>
      <li>Mango</li>
      <li>Papaya</li>
      <li>Grapes</li>
    </ol>
  39. 39.🔗 Where does this link open?
    <a href="maths.html">About us</a>
    (a) in the same tab (b) in a new tab
  40. 40.📝 How many paragraphs does this code make?
    <p>Good morning!</p>
    <h2>The red kite</h2>
    <p>Cricket is fun.</p>
    <p>Rain today</p>
    <p>Good morning!</p>

Answer key

  1. in the body
  2. 6
  3. <!DOCTYPE html>
  4. No
  5. 2
  6. No
  7. <ol>
  8. A tiger asleep
  9. <h1>
  10. False
  11. Play games
  12. opens web pages for us
  13. False
  14. a line across the page
  15. School news
  16. Art corner
  17. False
  18. <li>
  19. 4
  20. 4
  21. a web browser
  22. to describe the image
  23. False
  24. <h6>
  25. </html>
  26. Art corner
  27. in the same tab
  28. 3
  29. True
  30. False
  31. </u>
  32. has a closing tag
  33. <title>
  34. numbers
  35. 3
  36. <html>
  37. <h1>
  38. 4
  39. in the same tab
  40. 4

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