← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 13 · 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.🏷️ Is <b> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
  2. 2.📋 Which list suits a shopping list in any order? (a) <br> (b) <ul> (c) <ol> (d) <hr>
  3. 3.📄 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) Planets (b) index.html (c) We won by 5 runs. (d) My Hobbies
  4. 4.📋 What number does the browser show next to “Papaya”?
    <ol start="3">
      <li>Grapes</li>
      <li>Jamun</li>
      <li>Papaya</li>
      <li>Mango</li>
      <li>Guava</li>
      <li>Litchi</li>
    </ol>
  5. 5.🔠 Which heading shows the SMALLEST text: <h4>, <h6>, <h1> or <h5>? (a) <h6> (b) <h5> (c) <h4> (d) <h1>
  6. 6.🔗 Which address opens when you click this link?
    <a href="maths.html">School news</a>
    (a) School news (b) maths.html (c) news.html (d) art.html
  7. 7.📄 What does the browser tab show for this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>Space Facts</title>
    </head>
    <body>
      <h1>My drawings</h1>
      <p>I like to read.</p>
    </body>
    </html>
    (a) My drawings (b) index.html (c) Space Facts (d) I like to read.
  8. 8.True or false: <ul> goes in the head. (a) False (b) True
  9. 9.💬 How many paragraphs show on the page?
    <p>Rain today</p>
    <p>My pets</p>
    <p>The red kite</p>
    <!-- <p>Our school trip</p> -->
  10. 10.Which of these is an opening tag? (a) </li> (b) </title> (c) <body> (d) </p>
  11. 11.🔗 Which address opens when you click this link?
    <a href="games.html">Art corner</a>
    (a) about.html (b) Art corner (c) contact.html (d) games.html
  12. 12.💬 Why do coders write comments? (a) to leave notes (b) to add colour (c) to make links (d) to show pictures
  13. 13.💬 How many paragraphs show on the page?
    <!-- <p>Hello, world!</p> -->
    <!-- <p>Rain today</p> -->
    <p>I love mangoes.</p>
  14. 14.🔗 Which words do you click on?
    <a href="art.html">Art corner</a>
    (a) Art corner (b) art.html (c) School news (d) href
  15. 15.🔠 How many <h1> headings should a page usually have? (a) 6 (b) 3 (c) 1 (d) 10
  16. 16.🔍 Which is the odd one out? (a) stores a website’s files (b) hosts websites online (c) saves our .html files (d) sends pages over the net
  17. 17.True or false: in <img>, src names the picture file. (a) True (b) False
  18. 18.🏷️ Is </li> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
  19. 19.True or false: HTML on its own can make a form. (a) True (b) False
  20. 20.🔗 Which words do you click on?
    <a href="quiz.html">School news</a>
    (a) Take the quiz (b) href (c) School news (d) quiz.html
  21. 21.📝 How many paragraphs does this code make?
    <p>I love mangoes.</p>
    <p>Fun facts</p>
    <h2>Good morning!</h2>
    <p>My pets</p>
    <h2>Rain today</h2>
    <p>Cricket is fun.</p>
  22. 22.📄 What does the browser tab show for this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>Art Gallery</title>
    </head>
    <body>
      <h1>My drawings</h1>
      <p>Thanks for visiting.</p>
    </body>
    </html>
    (a) Thanks for visiting. (b) index.html (c) My drawings (d) Art Gallery
  23. 23.🖼️ Which tag puts a picture on a page? (a) <img> (b) <p> (c) <a> (d) <pic>
  24. 24.🌐 Which one shows line numbers? (a) a code editor (b) a web browser (c) a web server
  25. 25.🔗 Which address opens when you click this link?
    <a href="games.html">School news</a>
    (a) about.html (b) games.html (c) contact.html (d) School news
  26. 26.📋 What number does the browser show next to “Jamun”?
    <ol start="6">
      <li>Grapes</li>
      <li>Banana</li>
      <li>Guava</li>
      <li>Mango</li>
      <li>Jamun</li>
    </ol>
  27. 27.Which of these is an opening tag? (a) </p> (b) </b> (c) <title> (d) </body>
  28. 28.True or false: <ul> is an empty tag. (a) True (b) False
  29. 29.📄 Where does the text of <title> appear? (a) at the bottom (b) on the browser tab (c) in a big heading (d) nowhere
  30. 30.🔢 In a basic web page file, which comes LAST? (a) <body> (b) </html> (c) <html> (d) <head>
  31. 31.Which of these goes in the body? (a) <title> (b) <link rel="stylesheet"> (c) <style> (d) <a>
  32. 32.🔠 How many heading levels does HTML have? (a) 6 (b) 10 (c) 4 (d) 3
  33. 33.📋 How many items does this list show?
    <ol>
      <li>Grapes</li>
      <li>Litchi</li>
      <li>Mango</li>
      <li>Papaya</li>
      <li>Guava</li>
      <li>Orange</li>
    </ol>
  34. 34.📋 Does this list show bullets or numbers?
    <ul>
      <li>Jamun</li>
      <li>Mango</li>
    </ul>
    (a) numbers (b) bullets
  35. 35.🔠 Which heading shows the SMALLEST text: <h3>, <h4>, <h1> or <h6>? (a) <h1> (b) <h6> (c) <h4> (d) <h3>
  36. 36.💬 How does an HTML comment end? (a) */ (b) // (c) --> (d) >>
  37. 37.📋 How many items does this list show?
    <ul>
      <li>Jamun</li>
      <li>Guava</li>
    </ul>
  38. 38.📄 Can HTML on its own pick a random number? (a) No (b) Yes
  39. 39.🏷️ Which is the closing tag for <h1>? (a) <\h1> (b) <h1/> (c) <h1> (d) </h1>
  40. 40.True or false: <li> shows bullet points. (a) False (b) True

Answer key

  1. an opening tag
  2. <ul>
  3. My Hobbies
  4. 5
  5. <h6>
  6. maths.html
  7. Space Facts
  8. False
  9. 3
  10. <body>
  11. games.html
  12. to leave notes
  13. 1
  14. Art corner
  15. 1
  16. saves our .html files
  17. True
  18. a closing tag
  19. True
  20. School news
  21. 4
  22. Art Gallery
  23. <img>
  24. a code editor
  25. games.html
  26. 10
  27. <title>
  28. False
  29. on the browser tab
  30. </html>
  31. <a>
  32. 6
  33. 6
  34. bullets
  35. <h6>
  36. -->
  37. 2
  38. No
  39. </h1>
  40. False

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