← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 779 · 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 items does this list show?
    <ul>
      <li>Guava</li>
      <li>Mango</li>
    </ul>
  2. 2.🔠 Which tag is the least important heading? (a) <h6> (b) <h1> (c) <p> (d) <h3>
  3. 3.🔠 Which heading shows the BIGGEST text: <h3>, <h2>, <h5> or <h1>? (a) <h5> (b) <h2> (c) <h3> (d) <h1>
  4. 4.🖼️ How many pixels wide is the picture drawn?
    <img src="dog.jpg" alt="A happy dog" width="100">
  5. 5.🔠 Which heading shows the SMALLEST text: <h2>, <h3>, <h4> or <h6>? (a) <h6> (b) <h4> (c) <h3> (d) <h2>
  6. 6.Which of these is an opening tag? (a) </p> (b) </h1> (c) <p> (d) </title>
  7. 7.🔠 Which heading shows the SMALLEST text: <h6>, <h5>, <h1> or <h2>? (a) <h6> (b) <h1> (c) <h5> (d) <h2>
  8. 8.💬 Which text will NOT show on the page?
    <p>Rain today</p>
    <p>My pets</p>
    <p>Hello, world!</p>
    <!-- <p>I love mangoes.</p> -->
    (a) My pets (b) Rain today (c) Hello, world! (d) I love mangoes.
  9. 9.📄 What does the browser tab show for this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>My Hobbies</title>
    </head>
    <body>
      <h1>Welcome!</h1>
      <p>Thanks for visiting.</p>
    </body>
    </html>
    (a) index.html (b) Thanks for visiting. (c) My Hobbies (d) Welcome!
  10. 10.🏷️ Which is the closing tag for <i>? (a) <i/> (b) <i> (c) </i> (d) <\i>
  11. 11.🌐 Which one colours code to help us? (a) a code editor (b) a web server (c) a web browser
  12. 12.💬 Which text will NOT show on the page?
    <!-- <p>I love mangoes.</p> -->
    <p>Cricket is fun.</p>
    <p>Our school trip</p>
    (a) Cricket is fun. (b) Our school trip (c) I love mangoes.
  13. 13.Which of these is a closing tag? (a) <h1> (b) <li> (c) </b> (d) <body>
  14. 14.True or false: a web server saves our .html files. (a) True (b) False
  15. 15.🔠 Which heading shows the BIGGEST text: <h3>, <h2>, <h4> or <h6>? (a) <h3> (b) <h6> (c) <h2> (d) <h4>
  16. 16.True or false: <li> is one item of a list. (a) True (b) False
  17. 17.Which of these is true of a web browser? (a) hosts websites online (b) opens web pages for us (c) saves our .html files (d) shows line numbers
  18. 18.True or false: a web server has an address bar. (a) True (b) False
  19. 19.Which of these goes in the head? (a) <table> (b) <a> (c) <p> (d) <link rel="stylesheet">
  20. 20.True or false: a code editor colours code to help us. (a) True (b) False
  21. 21.🏷️ Is </b> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
  22. 22.🏷️ Is <li> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
  23. 23.📛 In <a href="x.html">, what is href? (a) a comment (b) a closing tag (c) an element name (d) an attribute
  24. 24.🧱 HTML gives a web page its ___. (a) structure (b) speed (c) sound (d) colours
  25. 25.True or false: <li> is an unordered list. (a) False (b) True
  26. 26.💬 How does an HTML comment start? (a) /* (b) // (c) <!-- (d) #
  27. 27.Which of these is true of a web browser? (a) shows pages from the web (b) sends pages over the net (c) stores a website’s files (d) shows line numbers
  28. 28.💬 How many paragraphs show on the page?
    <!-- <p>The red kite</p> -->
    <!-- <p>I love mangoes.</p> -->
    <p>Cricket is fun.</p>
    <p>Good morning!</p>
    <!-- <p>Hello, world!</p> -->
  29. 29.🔠 Which heading shows the BIGGEST text: <h1>, <h3>, <h5> or <h6>? (a) <h6> (b) <h5> (c) <h3> (d) <h1>
  30. 30.🧩 An opening tag + content + a closing tag together make an ___. (a) element (b) editor (c) attribute (d) address
  31. 31.🔗 Which words do you click on?
    <a href="games.html">Play games</a>
    (a) About us (b) Play games (c) games.html (d) href
  32. 32.🔠 How many headings are in this code?
    <h1>The red kite</h1>
    <h2>My pets</h2>
    <h3>Rain today</h3>
    <p>Hello, world!</p>
    <p>Good morning!</p>
  33. 33.🔠 Which heading shows the SMALLEST text: <h4>, <h1>, <h2> or <h3>? (a) <h1> (b) <h3> (c) <h2> (d) <h4>
  34. 34.Which of these is true of a web server? (a) answers page requests (b) saves our .html files (c) turns HTML into a page (d) opens web pages for us
  35. 35.🔗 Which address opens when you click this link?
    <a href="news.html">Contact us</a>
    (a) Contact us (b) games.html (c) quiz.html (d) news.html
  36. 36.🔠 Which heading shows the BIGGEST text: <h3>, <h2>, <h1> or <h4>? (a) <h3> (b) <h2> (c) <h4> (d) <h1>
  37. 37.💬 How many paragraphs show on the page?
    <p>Fun facts</p>
    <!-- <p>My pets</p> -->
    <p>I love mangoes.</p>
  38. 38.True or false: in <img>, alt describes the picture. (a) False (b) True
  39. 39.Which of these goes in the head? (a) <p> (b) <a> (c) <style> (d) <ul>
  40. 40.📄 Where does <link rel="stylesheet"> go: in the head or in the body? (a) in the head (b) in the body

Answer key

  1. 2
  2. <h6>
  3. <h1>
  4. 100
  5. <h6>
  6. <p>
  7. <h6>
  8. I love mangoes.
  9. My Hobbies
  10. </i>
  11. a code editor
  12. I love mangoes.
  13. </b>
  14. False
  15. <h2>
  16. True
  17. opens web pages for us
  18. False
  19. <link rel="stylesheet">
  20. True
  21. a closing tag
  22. an opening tag
  23. an attribute
  24. structure
  25. False
  26. <!--
  27. shows pages from the web
  28. 2
  29. <h1>
  30. element
  31. Play games
  32. 3
  33. <h4>
  34. answers page requests
  35. news.html
  36. <h1>
  37. 2
  38. True
  39. <style>
  40. in the head

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