← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 978 · 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 of these is an opening tag? (a) <title> (b) </body> (c) </b> (d) </li>
  2. 2.True or false: <li> goes inside ul or ol. (a) False (b) True
  3. 3.🔍 Which is the odd one out? (a) stores a website’s files (b) sends pages over the net (c) answers page requests (d) turns HTML into a page
  4. 4.🔠 How many headings are in this code?
    <h1>I love mangoes.</h1>
    <h3>I love mangoes.</h3>
    <h4>Hello, world!</h4>
    <h4>Good morning!</h4>
  5. 5.📝 What does <hr> draw? (a) a link (b) a table (c) a picture (d) a line across the page
  6. 6.💬 Which text will NOT show on the page?
    <p>Fun facts</p>
    <p>Hello, world!</p>
    <p>My best friend</p>
    <!-- <p>Our school trip</p> -->
    (a) Fun facts (b) Our school trip (c) My best friend (d) Hello, world!
  7. 7.🌐 Which one shows pages from the web? (a) a web server (b) a web browser (c) a code editor
  8. 8.🔗 Which address opens when you click this link?
    <a href="https://example.com">School news</a>
    (a) maths.html (b) https://example.com (c) art.html (d) School news
  9. 9.Which of these is an empty tag? (a) <title> (b) <b> (c) <meta> (d) <h1>
  10. 10.🌐 Which one opens web pages for us? (a) a web server (b) a web browser (c) a code editor
  11. 11.💬 How many paragraphs show on the page?
    <!-- <p>My best friend</p> -->
    <p>Fun facts</p>
    <!-- <p>I love mangoes.</p> -->
    <p>Cricket is fun.</p>
    <!-- <p>Rain today</p> -->
  12. 12.📝 How many paragraphs does this code make?
    <p>The red kite</p>
    <h2>Our school trip</h2>
    <h2>My best friend</h2>
  13. 13.💬 How many paragraphs show on the page?
    <p>My pets</p>
    <!-- <p>Hello, world!</p> -->
    <p>Cricket is fun.</p>
    <p>Good morning!</p>
  14. 14.🔗 Which tag makes a clickable link? (a) <img> (b) <link> (c) <p> (d) <a>
  15. 15.📄 Where does <a> go: in the head or in the body? (a) in the head (b) in the body
  16. 16.💬 Which text will NOT show on the page?
    <!-- <p>Cricket is fun.</p> -->
    <p>Our school trip</p>
    <p>I love mangoes.</p>
    (a) I love mangoes. (b) Our school trip (c) Cricket is fun.
  17. 17.💬 How many paragraphs show on the page?
    <p>My best friend</p>
    <!-- <p>I love mangoes.</p> -->
    <p>Hello, world!</p>
  18. 18.🔍 Which line is missing its closing tag?
    line 1: <b>Cricket is fun.
    line 2: <h1>I love mangoes.</h1>
    line 3: <i>My best friend</i>
    (a) line 3 (b) line 2 (c) line 1
  19. 19.🔠 How many heading levels does HTML have? (a) 6 (b) 10 (c) 4 (d) 3
  20. 20.📋 How many items does this list show?
    <ul>
      <li>Mango</li>
      <li>Banana</li>
    </ul>
  21. 21.Which of these is true of a web server? (a) turns HTML into a page (b) shows line numbers (c) colours code to help us (d) hosts websites online
  22. 22.Which of these goes in the body? (a) <p> (b) <style> (c) <link rel="stylesheet"> (d) <meta charset="utf-8">
  23. 23.📋 Which list shows the steps of a recipe best? (a) <br> (b) <ul> (c) <hr> (d) <ol>
  24. 24.📄 What does the browser tab show for this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>My Hobbies</title>
    </head>
    <body>
      <h1>Planets</h1>
      <p>We won by 5 runs.</p>
    </body>
    </html>
    (a) index.html (b) We won by 5 runs. (c) My Hobbies (d) Planets
  25. 25.🔗 What does HyperText mean? (a) text with links (b) text in colour (c) secret text (d) very big text
  26. 26.🔠 How many headings are in this code?
    <h1>Fun facts</h1>
    <p>My pets</p>
    <h2>Fun facts</h2>
    <p>I love mangoes.</p>
    <h2>Hello, world!</h2>
  27. 27.📝 How many paragraphs does this code make?
    <p>The red kite</p>
    <h2>Our school trip</h2>
    <p>Our school trip</p>
    <h2>My pets</h2>
    <p>The red kite</p>
  28. 28.📝 On how many lines does the browser show this paragraph?
    <p>Rivers flow<br>Roses are red</p>
  29. 29.🔍 Which is the odd one out? (a) turns HTML into a page (b) has an address bar (c) shows pages from the web (d) stores a website’s files
  30. 30.🔗 Which words do you click on?
    <a href="quiz.html">Take the quiz</a>
    (a) Play games (b) quiz.html (c) Take the quiz (d) href
  31. 31.📋 Which list tag shows bullet points? (a) <li> (b) <ul> (c) <ol>
  32. 32.📝 On how many lines does the browser show this paragraph?
    <p>Roses are red<br>Stars shine<br>Birds sing</p>
  33. 33.🔠 Which heading shows the SMALLEST text: <h2>, <h5>, <h3> or <h6>? (a) <h2> (b) <h6> (c) <h3> (d) <h5>
  34. 34.🔠 How many headings are in this code?
    <h1>I love mangoes.</h1>
    <p>Fun facts</p>
    <p>Our school trip</p>
    <h2>Our school trip</h2>
  35. 35.🔡 Are HTML tag names usually written in small letters? (a) No (b) Yes
  36. 36.True or false: a web server shows pages from the web. (a) True (b) False
  37. 37.🔗 Which words do you click on?
    <a href="contact.html">Play games</a>
    (a) Play games (b) contact.html (c) href (d) About us
  38. 38.💬 How many paragraphs show on the page?
    <!-- <p>The red kite</p> -->
    <p>Fun facts</p>
    <p>My pets</p>
  39. 39.True or false: <ul> lists steps in order. (a) True (b) False
  40. 40.🏷️ Which is the closing tag for <em>? (a) <em> (b) </em> (c) <em/> (d) <\em>

Answer key

  1. <title>
  2. True
  3. turns HTML into a page
  4. 4
  5. a line across the page
  6. Our school trip
  7. a web browser
  8. https://example.com
  9. <meta>
  10. a web browser
  11. 2
  12. 1
  13. 3
  14. <a>
  15. in the body
  16. Cricket is fun.
  17. 2
  18. line 1
  19. 6
  20. 2
  21. hosts websites online
  22. <p>
  23. <ol>
  24. My Hobbies
  25. text with links
  26. 3
  27. 3
  28. 2
  29. stores a website’s files
  30. Take the quiz
  31. <ul>
  32. 3
  33. <h6>
  34. 2
  35. Yes
  36. False
  37. Play games
  38. 2
  39. False
  40. </em>

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