← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 245 · 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 words do you click on?
    <a href="quiz.html">School news</a>
    (a) href (b) Take the quiz (c) School news (d) quiz.html
  2. 2.🔠 Which heading shows the SMALLEST text: <h3>, <h2>, <h1> or <h6>? (a) <h2> (b) <h1> (c) <h6> (d) <h3>
  3. 3.🔠 How many heading levels does HTML have? (a) 3 (b) 4 (c) 10 (d) 6
  4. 4.📄 Where does the text of <title> appear? (a) at the bottom (b) on the browser tab (c) nowhere (d) in a big heading
  5. 5.💬 Can anyone read your comments by viewing the page source? (a) Yes (b) No
  6. 6.True or false: in <img>, src shows if the image fails. (a) False (b) True
  7. 7.🔗 Which address opens when you click this link?
    <a href="maths.html">Play games</a>
    (a) Play games (b) art.html (c) news.html (d) maths.html
  8. 8.🌐 Which one turns HTML into a page? (a) a web server (b) a web browser (c) a code editor
  9. 9.True or false: in <img>, width tells which image to load. (a) True (b) False
  10. 10.🔗 Which address opens when you click this link?
    <a href="about.html">Maths fun</a>
    (a) https://example.com (b) about.html (c) Maths fun (d) contact.html
  11. 11.🔠 Which heading shows the BIGGEST text: <h1>, <h5>, <h4> or <h2>? (a) <h4> (b) <h1> (c) <h5> (d) <h2>
  12. 12.📝 How many paragraphs does this code make?
    <p>Our school trip</p>
    <p>Rain today</p>
    <p>The red kite</p>
  13. 13.Which of these is an opening tag? (a) </p> (b) </b> (c) <li> (d) </h1>
  14. 14.🔠 How many <h1> headings should a page usually have? (a) 6 (b) 1 (c) 3 (d) 10
  15. 15.📋 How many items does this list show?
    <ul>
      <li>Banana</li>
      <li>Orange</li>
      <li>Mango</li>
      <li>Litchi</li>
      <li>Grapes</li>
      <li>Jamun</li>
    </ul>
  16. 16.💬 Does the browser show comments on the page? (a) No (b) Yes
  17. 17.📋 How many items does this list show?
    <ul>
      <li>Guava</li>
      <li>Jamun</li>
      <li>Grapes</li>
      <li>Banana</li>
    </ul>
  18. 18.🧱 HTML gives a web page its ___. (a) speed (b) structure (c) colours (d) sound
  19. 19.🔠 Which tag is used for the main title on a page? (a) <br> (b) <p> (c) <h6> (d) <h1>
  20. 20.🔍 One closing tag is missing. Which one?
    <h1>Cricket is fun.</h1>
    <u>I love mangoes.</u>
    <small>Hello, world!
    (a) </u> (b) </h1> (c) </small> (d) </em>
  21. 21.📋 Which list suits a shopping list in any order? (a) <br> (b) <ol> (c) <hr> (d) <ul>
  22. 22.Which of these is true of a code editor? (a) answers page requests (b) saves our .html files (c) stores a website’s files (d) opens web pages for us
  23. 23.📋 How many items does this list show?
    <ul>
      <li>Orange</li>
      <li>Papaya</li>
      <li>Guava</li>
      <li>Grapes</li>
    </ul>
  24. 24.Which of these is true of a web browser? (a) colours code to help us (b) answers page requests (c) turns HTML into a page (d) is where we type code
  25. 25.🏷️ Which is the closing tag for <h2>? (a) <h2/> (b) <h2> (c) <\h2> (d) </h2>
  26. 26.📋 How many items does this list show?
    <ol>
      <li>Guava</li>
      <li>Mango</li>
      <li>Grapes</li>
    </ol>
  27. 27.🌐 Which one opens web pages for us? (a) a web browser (b) a code editor (c) a web server
  28. 28.📄 Where does <style> go: in the head or in the body? (a) in the body (b) in the head
  29. 29.🔗 Where does this link open?
    <a href="news.html">School news</a>
    (a) in a new tab (b) in the same tab
  30. 30.True or false: HTML on its own cannot make tables. (a) False (b) True
  31. 31.🔍 One closing tag is missing. Which one?
    <em>My best friend
    <p>Good morning!</p>
    <u>Fun facts</u>
    (a) </u> (b) </em> (c) </b> (d) </p>
  32. 32.📄 Can HTML on its own add pictures to a page? (a) No (b) Yes
  33. 33.📝 How many paragraphs does this code make?
    <p>The red kite</p>
    <h2>The red kite</h2>
    <p>The red kite</p>
    <h2>I love mangoes.</h2>
    <h2>Fun facts</h2>
  34. 34.🔍 Which is the odd one out? (a) shows pages from the web (b) has an address bar (c) turns HTML into a page (d) colours code to help us
  35. 35.🏷️ Is <h1> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
  36. 36.📄 What does the browser tab show for this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>My Hobbies</title>
    </head>
    <body>
      <h1>My drawings</h1>
      <p>Here is my best one.</p>
    </body>
    </html>
    (a) Here is my best one. (b) index.html (c) My drawings (d) My Hobbies
  37. 37.🔠 Which heading shows the SMALLEST text: <h5>, <h1>, <h2> or <h3>? (a) <h1> (b) <h5> (c) <h2> (d) <h3>
  38. 38.📋 What number does the browser show next to “Papaya”?
    <ol>
      <li>Mango</li>
      <li>Orange</li>
      <li>Jamun</li>
      <li>Banana</li>
      <li>Papaya</li>
    </ol>
  39. 39.🔠 Which heading shows the BIGGEST text: <h2>, <h6>, <h4> or <h1>? (a) <h1> (b) <h2> (c) <h6> (d) <h4>
  40. 40.🔠 Which heading shows the SMALLEST text: <h2>, <h3>, <h4> or <h5>? (a) <h4> (b) <h5> (c) <h3> (d) <h2>

Answer key

  1. School news
  2. <h6>
  3. 6
  4. on the browser tab
  5. Yes
  6. False
  7. maths.html
  8. a web browser
  9. False
  10. about.html
  11. <h1>
  12. 3
  13. <li>
  14. 1
  15. 6
  16. No
  17. 4
  18. structure
  19. <h1>
  20. </small>
  21. <ul>
  22. saves our .html files
  23. 4
  24. turns HTML into a page
  25. </h2>
  26. 3
  27. a web browser
  28. in the head
  29. in the same tab
  30. False
  31. </em>
  32. Yes
  33. 2
  34. colours code to help us
  35. an opening tag
  36. My Hobbies
  37. <h5>
  38. 5
  39. <h1>
  40. <h5>

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