← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 948 · 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 heading shows the SMALLEST text: <h3>, <h5>, <h6> or <h4>? (a) <h3> (b) <h4> (c) <h6> (d) <h5>
  2. 2.🔗 Which address opens when you click this link?
    <a href="about.html">Take the quiz</a>
    (a) contact.html (b) https://example.com (c) Take the quiz (d) about.html
  3. 3.🖼️ How many pixels wide is the picture drawn?
    <img src="cake.jpg" alt="Birthday cake" width="350">
  4. 4.💬 How many paragraphs show on the page?
    <!-- <p>I love mangoes.</p> -->
    <p>Rain today</p>
    <p>My best friend</p>
    <!-- <p>My pets</p> -->
    <!-- <p>Hello, world!</p> -->
  5. 5.🔍 Which line is missing its closing tag?
    line 1: <h3>Our school trip</h3>
    line 2: <p>Good morning!</p>
    line 3: <h2>Cricket is fun.
    (a) line 2 (b) line 1 (c) line 3
  6. 6.🔗 Which words do you click on?
    <a href="https://example.com">Play games</a>
    (a) href (b) https://example.com (c) About us (d) Play games
  7. 7.🔠 Which heading shows the SMALLEST text: <h1>, <h5>, <h2> or <h6>? (a) <h2> (b) <h6> (c) <h5> (d) <h1>
  8. 8.🔍 Which line is missing its closing tag?
    line 1: <strong>My pets
    line 2: <h2>Hello, world!</h2>
    line 3: <em>Good morning!</em>
    (a) line 1 (b) line 2 (c) line 3
  9. 9.🧩 An opening tag + content + a closing tag together make an ___. (a) editor (b) attribute (c) address (d) element
  10. 10.🔍 Which is the odd one out? (a) turns HTML into a page (b) shows line numbers (c) shows pages from the web (d) opens web pages for us
  11. 11.🔤 In “HTML”, what does the M stand for? (a) Modern (b) Markup (c) Machine (d) Mouse
  12. 12.📄 Which part holds everything you see on the page? (a) the title (b) the doctype (c) the head (d) the body
  13. 13.📄 What is the first line of an HTML5 page? (a) <body> (b) <html> (c) <head> (d) <!DOCTYPE html>
  14. 14.📋 How many items does this list show?
    <ul>
      <li>Mango</li>
      <li>Grapes</li>
      <li>Jamun</li>
      <li>Papaya</li>
    </ul>
  15. 15.💬 How does an HTML comment start? (a) // (b) # (c) /* (d) <!--
  16. 16.💬 How does an HTML comment end? (a) --> (b) // (c) >> (d) */
  17. 17.🔍 One closing tag is missing. Which one?
    <small>My best friend</small>
    <h1>I love mangoes.</h1>
    <i>Cricket is fun.
    (a) </i> (b) </h2> (c) </h1> (d) </small>
  18. 18.💬 Can anyone read your comments by viewing the page source? (a) No (b) Yes
  19. 19.🔠 Which heading shows the SMALLEST text: <h1>, <h3>, <h4> or <h6>? (a) <h4> (b) <h3> (c) <h6> (d) <h1>
  20. 20.🔍 Which line is missing its closing tag?
    line 1: <b>Fun facts</b>
    line 2: <i>The red kite
    line 3: <h3>Our school trip</h3>
    (a) line 1 (b) line 3 (c) line 2
  21. 21.📄 Where does <style> go: in the head or in the body? (a) in the body (b) in the head
  22. 22.📋 How many items does this list show?
    <ol>
      <li>Mango</li>
      <li>Orange</li>
      <li>Papaya</li>
      <li>Jamun</li>
    </ol>
  23. 23.📝 On how many lines does the browser show this paragraph?
    <p>Rivers flow<br>Sky is blue<br>Birds sing</p>
  24. 24.🔗 Which words do you click on?
    <a href="art.html">Play games</a>
    (a) Play games (b) href (c) About us (d) art.html
  25. 25.🏷️ Which is the closing tag for <h2>? (a) </h2> (b) <h2> (c) <h2/> (d) <\h2>
  26. 26.Which of these is an opening tag? (a) </h1> (b) <body> (c) </b> (d) </p>
  27. 27.True or false: a web browser hosts websites online. (a) True (b) False
  28. 28.🖼️ Which picture file does the browser load?
    <img src="moon.png" alt="The full moon" width="200">
    (a) fort.jpg (b) moon.png (c) The full moon (d) bus.jpg
  29. 29.🔠 Which heading shows the BIGGEST text: <h5>, <h1>, <h3> or <h2>? (a) <h3> (b) <h5> (c) <h2> (d) <h1>
  30. 30.📝 On how many lines does the browser show this paragraph?
    <p>Birds sing<br>Stars shine<br>Roses are red</p>
  31. 31.🌐 Which one is where we type code? (a) a code editor (b) a web browser (c) a web server
  32. 32.💬 Which text will NOT show on the page?
    <p>Fun facts</p>
    <!-- <p>Good morning!</p> -->
    <p>The red kite</p>
    (a) Fun facts (b) Good morning! (c) The red kite
  33. 33.🖼️ Which picture file does the browser load?
    <img src="moon.png" alt="The full moon" width="250">
    (a) The full moon (b) moon.png (c) bus.jpg (d) fort.jpg
  34. 34.True or false: <li> is one item of a list. (a) False (b) True
  35. 35.💬 Which text will NOT show on the page?
    <!-- <p>Cricket is fun.</p> -->
    <p>Rain today</p>
    <p>Fun facts</p>
    (a) Fun facts (b) Cricket is fun. (c) Rain today
  36. 36.🔗 Where does this link open?
    <a href="art.html" target="_blank">Visit the site</a>
    (a) in the same tab (b) in a new tab
  37. 37.🔠 Which heading shows the BIGGEST text: <h6>, <h5>, <h2> or <h1>? (a) <h1> (b) <h5> (c) <h6> (d) <h2>
  38. 38.Which of these has a closing tag? (a) <input> (b) <hr> (c) <h1> (d) <img>
  39. 39.🌐 Which one stores a website’s files? (a) a code editor (b) a web server (c) a web browser
  40. 40.🌐 Which one shows pages from the web? (a) a web server (b) a web browser (c) a code editor

Answer key

  1. <h6>
  2. about.html
  3. 350
  4. 2
  5. line 3
  6. Play games
  7. <h6>
  8. line 1
  9. element
  10. shows line numbers
  11. Markup
  12. the body
  13. <!DOCTYPE html>
  14. 4
  15. <!--
  16. -->
  17. </i>
  18. Yes
  19. <h6>
  20. line 2
  21. in the head
  22. 4
  23. 3
  24. Play games
  25. </h2>
  26. <body>
  27. False
  28. moon.png
  29. <h1>
  30. 3
  31. a code editor
  32. Good morning!
  33. moon.png
  34. True
  35. Cricket is fun.
  36. in a new tab
  37. <h1>
  38. <h1>
  39. a web server
  40. a web browser

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