← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 39 · 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: <h6>, <h4>, <h1> or <h3>? (a) <h4> (b) <h3> (c) <h1> (d) <h6>
  2. 2.🔠 Are headings shown in bold by default? (a) No (b) Yes
  3. 3.🖼️ Which picture file does the browser load?
    <img src="kite.png" alt="A red kite" width="300">
    (a) cake.jpg (b) kite.png (c) map.png (d) A red kite
  4. 4.📄 Where does <ul> go: in the head or in the body? (a) in the head (b) in the body
  5. 5.🔗 Which words do you click on?
    <a href="about.html">Play games</a>
    (a) About us (b) about.html (c) href (d) Play games
  6. 6.📋 What number does the browser show next to “Orange”?
    <ol start="5">
      <li>Litchi</li>
      <li>Grapes</li>
      <li>Banana</li>
      <li>Orange</li>
    </ol>
  7. 7.📄 Can HTML on its own add pictures to a page? (a) Yes (b) No
  8. 8.True or false: a web server sends pages over the net. (a) True (b) False
  9. 9.True or false: <ul> is an unordered list. (a) True (b) False
  10. 10.💬 Why do coders write comments? (a) to leave notes (b) to add colour (c) to show pictures (d) to make links
  11. 11.True or false: <ol> shows bullet points. (a) True (b) False
  12. 12.🖼️ Which picture file does the browser load?
    <img src="kite.png" alt="A red kite" width="400">
    (a) cake.jpg (b) kite.png (c) map.png (d) A red kite
  13. 13.🔍 One closing tag is missing. Which one?
    <b>Hello, world!
    <u>The red kite</u>
    <p>I love mangoes.</p>
    (a) </u> (b) </p> (c) </b> (d) </small>
  14. 14.True or false: a code editor answers page requests. (a) False (b) True
  15. 15.🔠 How many headings are in this code?
    <h1>I love mangoes.</h1>
    <p>Our school trip</p>
    <h4>Our school trip</h4>
    <p>Rain today</p>
    <h3>The red kite</h3>
  16. 16.🖼️ How many pixels wide is the picture drawn?
    <img src="moon.png" alt="The full moon" width="350">
  17. 17.🔍 Which is the odd one out? (a) colours code to help us (b) sends pages over the net (c) stores a website’s files (d) hosts websites online
  18. 18.🔠 How many headings are in this code?
    <h1>Cricket is fun.</h1>
    <p>Rain today</p>
    <h3>Cricket is fun.</h3>
    <p>My pets</p>
  19. 19.True or false: <b> has a closing tag. (a) False (b) True
  20. 20.📋 Which list tag is an unordered list? (a) <ol> (b) <ul> (c) <li>
  21. 21.True or false: <table> goes in the body. (a) False (b) True
  22. 22.🔠 Which tag is the least important heading? (a) <p> (b) <h1> (c) <h3> (d) <h6>
  23. 23.🏷️ Is <li> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
  24. 24.🔠 How many headings are in this code?
    <h1>Rain today</h1>
    <p>Our school trip</p>
    <p>I love mangoes.</p>
    <h3>Our school trip</h3>
    <p>Our school trip</p>
  25. 25.🔗 Where does this link open?
    <a href="about.html" target="_blank">Visit the site</a>
    (a) in the same tab (b) in a new tab
  26. 26.True or false: <li> is one item of a list. (a) True (b) False
  27. 27.🏷️ Is <b> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
  28. 28.📋 What number does the browser show next to “Guava”?
    <ol>
      <li>Grapes</li>
      <li>Orange</li>
      <li>Guava</li>
      <li>Mango</li>
    </ol>
  29. 29.🔍 One closing tag is missing. Which one?
    <i>The red kite</i>
    <h1>Rain today</h1>
    <b>Our school trip
    (a) </h1> (b) </i> (c) </b> (d) </em>
  30. 30.📄 Where does <title> go: in the head or in the body? (a) in the head (b) in the body
  31. 31.🏷️ Which is the closing tag for <h2>? (a) <h2/> (b) <\h2> (c) </h2> (d) <h2>
  32. 32.True or false: <link rel="stylesheet"> goes in the head. (a) False (b) True
  33. 33.Which of these goes in the body? (a) <title> (b) <style> (c) <h1> (d) <link rel="stylesheet">
  34. 34.True or false: <li> shows 1, 2, 3 numbers. (a) True (b) False
  35. 35.🔍 Which is the odd one out? (a) stores a website’s files (b) shows line numbers (c) hosts websites online (d) sends pages over the net
  36. 36.🔢 In a basic web page file, which comes first: “<!DOCTYPE html>” or “</head>”? (a) </head> (b) <!DOCTYPE html>
  37. 37.Which of these is a closing tag? (a) <p> (b) <li> (c) <h1> (d) </body>
  38. 38.🧩 An opening tag + content + a closing tag together make an ___. (a) element (b) address (c) attribute (d) editor
  39. 39.📝 How many paragraphs does this code make?
    <p>The red kite</p>
    <p>Good morning!</p>
    <p>Hello, world!</p>
    <p>Rain today</p>
    <h2>Fun facts</h2>
    <p>My pets</p>
  40. 40.📝 How many paragraphs does this code make?
    <p>My pets</p>
    <p>Good morning!</p>
    <h2>Rain today</h2>
    <h2>Hello, world!</h2>
    <p>My pets</p>
    <p>Rain today</p>

Answer key

  1. <h1>
  2. Yes
  3. kite.png
  4. in the body
  5. Play games
  6. 8
  7. Yes
  8. True
  9. True
  10. to leave notes
  11. False
  12. kite.png
  13. </b>
  14. False
  15. 3
  16. 350
  17. colours code to help us
  18. 2
  19. True
  20. <ul>
  21. True
  22. <h6>
  23. an opening tag
  24. 2
  25. in a new tab
  26. True
  27. an opening tag
  28. 3
  29. </b>
  30. in the head
  31. </h2>
  32. True
  33. <h1>
  34. False
  35. shows line numbers
  36. <!DOCTYPE html>
  37. </body>
  38. element
  39. 5
  40. 4

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