← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 783 · 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.🧱 HTML gives a web page its ___. (a) speed (b) sound (c) structure (d) colours
  2. 2.🔍 Which is the odd one out? (a) has an address bar (b) turns HTML into a page (c) opens web pages for us (d) stores a website’s files
  3. 3.🏷️ Which is the closing tag for <h2>? (a) <h2/> (b) </h2> (c) <h2> (d) <\h2>
  4. 4.🔠 Which heading shows the BIGGEST text: <h1>, <h3>, <h2> or <h5>? (a) <h1> (b) <h5> (c) <h2> (d) <h3>
  5. 5.🔗 Which words do you click on?
    <a href="quiz.html">School news</a>
    (a) School news (b) href (c) quiz.html (d) Take the quiz
  6. 6.🔍 Which line is missing its closing tag?
    line 1: <h1>Fun facts</h1>
    line 2: <h3>Cricket is fun.</h3>
    line 3: <small>I love mangoes.
    (a) line 2 (b) line 1 (c) line 3
  7. 7.Which of these is a closing tag? (a) <body> (b) </h1> (c) <b> (d) <li>
  8. 8.🔗 Where does this link open?
    <a href="about.html">School news</a>
    (a) in a new tab (b) in the same tab
  9. 9.💬 How many paragraphs show on the page?
    <!-- <p>Hello, world!</p> -->
    <!-- <p>Our school trip</p> -->
    <p>Cricket is fun.</p>
  10. 10.True or false: in <img>, alt is read by screen readers. (a) True (b) False
  11. 11.📝 On how many lines does the browser show this paragraph?
    <p>Kites fly high<br>Sky is blue<br>Rivers flow<br>Roses are red</p>
  12. 12.🔡 Are HTML tag names usually written in small letters? (a) Yes (b) No
  13. 13.🧩 An opening tag + content + a closing tag together make an ___. (a) address (b) element (c) editor (d) attribute
  14. 14.🖼️ Which picture file does the browser load?
    <img src="bus.jpg" alt="Our school bus" width="50">
    (a) fort.jpg (b) bus.jpg (c) tiger.jpg (d) Our school bus
  15. 15.💾 A web page file usually ends with which extension? (a) .png (b) .mp3 (c) .html (d) .txt
  16. 16.💬 How many paragraphs show on the page?
    <p>The red kite</p>
    <!-- <p>Our school trip</p> -->
    <!-- <p>Good morning!</p> -->
    <!-- <p>My pets</p> -->
    <!-- <p>Fun facts</p> -->
  17. 17.🔠 Which heading shows the BIGGEST text: <h3>, <h4>, <h6> or <h5>? (a) <h6> (b) <h4> (c) <h5> (d) <h3>
  18. 18.📋 Does this list show bullets or numbers?
    <ul>
      <li>Litchi</li>
      <li>Orange</li>
    </ul>
    (a) bullets (b) numbers
  19. 19.🔗 Which address opens when you click this link?
    <a href="games.html">Take the quiz</a>
    (a) Take the quiz (b) contact.html (c) games.html (d) about.html
  20. 20.🏷️ Which is the closing tag for <strong>? (a) <\strong> (b) </strong> (c) <strong/> (d) <strong>
  21. 21.🔠 Which heading shows the BIGGEST text: <h1>, <h2>, <h3> or <h5>? (a) <h5> (b) <h1> (c) <h2> (d) <h3>
  22. 22.🔠 Which heading shows the SMALLEST text: <h5>, <h4>, <h3> or <h2>? (a) <h3> (b) <h5> (c) <h4> (d) <h2>
  23. 23.🔠 Which heading shows the SMALLEST text: <h2>, <h3>, <h5> or <h6>? (a) <h5> (b) <h6> (c) <h2> (d) <h3>
  24. 24.📝 Does <img> have a closing tag, or is it an empty tag? (a) has a closing tag (b) an empty tag
  25. 25.💬 How many paragraphs show on the page?
    <!-- <p>Good morning!</p> -->
    <!-- <p>I love mangoes.</p> -->
    <p>My pets</p>
    <!-- <p>My best friend</p> -->
  26. 26.📋 What number does the browser show next to “Orange”?
    <ol>
      <li>Mango</li>
      <li>Grapes</li>
      <li>Banana</li>
      <li>Litchi</li>
      <li>Jamun</li>
      <li>Orange</li>
    </ol>
  27. 27.📋 What number does the browser show next to “Mango”?
    <ol start="5">
      <li>Guava</li>
      <li>Litchi</li>
      <li>Grapes</li>
      <li>Mango</li>
      <li>Papaya</li>
    </ol>
  28. 28.🔠 Which heading shows the BIGGEST text: <h2>, <h5>, <h3> or <h4>? (a) <h4> (b) <h3> (c) <h2> (d) <h5>
  29. 29.📄 Can HTML on its own pick a random number? (a) Yes (b) No
  30. 30.📋 Does this list show bullets or numbers?
    <ol>
      <li>Jamun</li>
      <li>Grapes</li>
    </ol>
    (a) bullets (b) numbers
  31. 31.💬 How many paragraphs show on the page?
    <!-- <p>My pets</p> -->
    <!-- <p>The red kite</p> -->
    <p>My best friend</p>
  32. 32.True or false: <input> has a closing tag. (a) False (b) True
  33. 33.📝 How many paragraphs does this code make?
    <p>I love mangoes.</p>
    <p>The red kite</p>
    <p>Cricket is fun.</p>
    <p>Rain today</p>
    <h2>The red kite</h2>
  34. 34.📋 Which list suits a shopping list in any order? (a) <ul> (b) <hr> (c) <ol> (d) <br>
  35. 35.💬 How many paragraphs show on the page?
    <!-- <p>I love mangoes.</p> -->
    <p>Hello, world!</p>
    <p>My pets</p>
  36. 36.🖼️ How many pixels wide is the picture drawn?
    <img src="moon.png" alt="The full moon" width="100">
  37. 37.🔗 Which address opens when you click this link?
    <a href="https://example.com">Contact us</a>
    (a) https://example.com (b) art.html (c) maths.html (d) Contact us
  38. 38.🖼️ How many pixels wide is the picture drawn?
    <img src="kite.png" alt="A red kite" width="150">
  39. 39.🔍 Which is the odd one out? (a) shows line numbers (b) saves our .html files (c) hosts websites online (d) colours code to help us
  40. 40.🔠 Which heading shows the BIGGEST text: <h4>, <h5>, <h2> or <h6>? (a) <h5> (b) <h6> (c) <h2> (d) <h4>

Answer key

  1. structure
  2. stores a website’s files
  3. </h2>
  4. <h1>
  5. School news
  6. line 3
  7. </h1>
  8. in the same tab
  9. 1
  10. True
  11. 4
  12. Yes
  13. element
  14. bus.jpg
  15. .html
  16. 1
  17. <h3>
  18. bullets
  19. games.html
  20. </strong>
  21. <h1>
  22. <h5>
  23. <h6>
  24. an empty tag
  25. 1
  26. 6
  27. 8
  28. <h2>
  29. No
  30. numbers
  31. 1
  32. False
  33. 4
  34. <ul>
  35. 2
  36. 100
  37. https://example.com
  38. 150
  39. hosts websites online
  40. <h2>

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