← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 63 · 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.💬 How many paragraphs show on the page?
    <p>Rain today</p>
    <!-- <p>Our school trip</p> -->
    <p>The red kite</p>
    <p>Cricket is fun.</p>
  2. 2.📋 Does this list show bullets or numbers?
    <ul>
      <li>Papaya</li>
      <li>Grapes</li>
    </ul>
    (a) numbers (b) bullets
  3. 3.📝 What does <hr> draw? (a) a line across the page (b) a picture (c) a table (d) a link
  4. 4.📝 How many paragraphs does this code make?
    <p>Good morning!</p>
    <h2>The red kite</h2>
    <h2>Cricket is fun.</h2>
  5. 5.📝 What does <br> do? (a) makes text bold (b) starts a new line (c) adds a picture (d) makes a list
  6. 6.True or false: <p> has a closing tag. (a) True (b) False
  7. 7.💬 How many paragraphs show on the page?
    <!-- <p>Rain today</p> -->
    <!-- <p>My best friend</p> -->
    <p>Hello, world!</p>
    <!-- <p>Good morning!</p> -->
    <p>My pets</p>
  8. 8.📝 You type 5 spaces between two words in a <p>. How does the browser show them? (a) as 5 spaces (b) as one space (c) as a dot (d) as a new line
  9. 9.True or false: <ul> shows 1, 2, 3 numbers. (a) True (b) False
  10. 10.💬 How many paragraphs show on the page?
    <!-- <p>Our school trip</p> -->
    <p>My best friend</p>
    <p>The red kite</p>
  11. 11.🔠 Which heading shows the BIGGEST text: <h4>, <h1>, <h5> or <h3>? (a) <h3> (b) <h5> (c) <h4> (d) <h1>
  12. 12.Which of these has a closing tag? (a) <img> (b) <hr> (c) <title> (d) <br>
  13. 13.📝 On how many lines does the browser show this paragraph?
    <p>Stars shine<br>Rivers flow<br>Birds sing</p>
  14. 14.🔠 Which heading shows the SMALLEST text: <h2>, <h4>, <h1> or <h3>? (a) <h1> (b) <h3> (c) <h4> (d) <h2>
  15. 15.True or false: HTML on its own cannot keep a high score. (a) False (b) True
  16. 16.🔗 Which words do you click on?
    <a href="contact.html">Play games</a>
    (a) About us (b) Play games (c) contact.html (d) href
  17. 17.🔗 Which words do you click on?
    <a href="games.html">Take the quiz</a>
    (a) Play games (b) href (c) games.html (d) Take the quiz
  18. 18.📋 What number does the browser show next to “Grapes”?
    <ol>
      <li>Orange</li>
      <li>Jamun</li>
      <li>Grapes</li>
      <li>Mango</li>
    </ol>
  19. 19.💬 How many paragraphs show on the page?
    <p>Rain today</p>
    <p>I love mangoes.</p>
    <p>Fun facts</p>
    <!-- <p>Hello, world!</p> -->
  20. 20.📋 What number does the browser show next to “Litchi”?
    <ol>
      <li>Jamun</li>
      <li>Mango</li>
      <li>Litchi</li>
      <li>Orange</li>
    </ol>
  21. 21.💬 How many paragraphs show on the page?
    <p>Cricket is fun.</p>
    <p>Good morning!</p>
    <p>The red kite</p>
    <!-- <p>My best friend</p> -->
    <!-- <p>I love mangoes.</p> -->
  22. 22.📄 Where does <meta charset="utf-8"> go: in the head or in the body? (a) in the body (b) in the head
  23. 23.🏷️ Which is the closing tag for <b>? (a) <b/> (b) <\b> (c) </b> (d) <b>
  24. 24.🔠 Which heading shows the BIGGEST text: <h1>, <h2>, <h3> or <h4>? (a) <h4> (b) <h1> (c) <h2> (d) <h3>
  25. 25.True or false: a web server stores a website’s files. (a) True (b) False
  26. 26.🏷️ Is </li> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
  27. 27.📝 Does <h1> have a closing tag, or is it an empty tag? (a) an empty tag (b) has a closing tag
  28. 28.🔗 Which attribute holds the address of a link? (a) src (b) href (c) id (d) alt
  29. 29.🔠 Which heading shows the SMALLEST text: <h6>, <h1>, <h4> or <h5>? (a) <h6> (b) <h5> (c) <h4> (d) <h1>
  30. 30.🔗 What does target="_blank" do to a link? (a) hides the link (b) makes it bold (c) makes it blank (d) opens it in a new tab
  31. 31.📋 Does this list show bullets or numbers?
    <ol>
      <li>Mango</li>
      <li>Banana</li>
      <li>Litchi</li>
    </ol>
    (a) bullets (b) numbers
  32. 32.💬 How many paragraphs show on the page?
    <p>Our school trip</p>
    <!-- <p>My pets</p> -->
    <p>Hello, world!</p>
    <p>Good morning!</p>
    <p>Cricket is fun.</p>
  33. 33.Which of these is true of a code editor? (a) is where we type code (b) has an address bar (c) sends pages over the net (d) shows pages from the web
  34. 34.🔠 How many <h1> headings should a page usually have? (a) 10 (b) 3 (c) 1 (d) 6
  35. 35.🔠 How many headings are in this code?
    <h1>Cricket is fun.</h1>
    <h4>My pets</h4>
    <p>The red kite</p>
    <p>My best friend</p>
    <p>Fun facts</p>
  36. 36.🔠 Which heading shows the BIGGEST text: <h4>, <h3>, <h5> or <h1>? (a) <h4> (b) <h5> (c) <h3> (d) <h1>
  37. 37.🔍 Which is the odd one out? (a) shows line numbers (b) saves our .html files (c) has an address bar (d) colours code to help us
  38. 38.📋 Which list tag is an unordered list? (a) <ol> (b) <ul> (c) <li>
  39. 39.🔗 Where does this link open?
    <a href="games.html">About us</a>
    (a) in a new tab (b) in the same tab
  40. 40.🔠 Which heading shows the BIGGEST text: <h3>, <h1>, <h4> or <h2>? (a) <h3> (b) <h2> (c) <h1> (d) <h4>

Answer key

  1. 3
  2. bullets
  3. a line across the page
  4. 1
  5. starts a new line
  6. True
  7. 2
  8. as one space
  9. False
  10. 2
  11. <h1>
  12. <title>
  13. 3
  14. <h4>
  15. True
  16. Play games
  17. Take the quiz
  18. 3
  19. 3
  20. 3
  21. 3
  22. in the head
  23. </b>
  24. <h1>
  25. True
  26. a closing tag
  27. has a closing tag
  28. href
  29. <h6>
  30. opens it in a new tab
  31. numbers
  32. 4
  33. is where we type code
  34. 1
  35. 2
  36. <h1>
  37. has an address bar
  38. <ul>
  39. in the same tab
  40. <h1>

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