← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 669 · 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 one opens web pages for us? (a) a web browser (b) a web server (c) a code editor
  2. 2.📋 How many items does this list show?
    <ul>
      <li>Grapes</li>
      <li>Jamun</li>
    </ul>
  3. 3.🔗 Which tag makes a clickable link? (a) <p> (b) <a> (c) <link> (d) <img>
  4. 4.📋 Does this list show bullets or numbers?
    <ul>
      <li>Orange</li>
      <li>Guava</li>
      <li>Papaya</li>
    </ul>
    (a) numbers (b) bullets
  5. 5.True or false: HTML on its own can count button clicks. (a) False (b) True
  6. 6.Which of these goes in the body? (a) <meta charset="utf-8"> (b) <p> (c) <title> (d) <style>
  7. 7.🖼️ Which picture file does the browser load?
    <img src="moon.png" alt="The full moon" width="50">
    (a) fort.jpg (b) The full moon (c) moon.png (d) bus.jpg
  8. 8.🔗 Which address opens when you click this link?
    <a href="contact.html">Maths fun</a>
    (a) Maths fun (b) maths.html (c) contact.html (d) https://example.com
  9. 9.🔗 Which words do you click on?
    <a href="contact.html">Play games</a>
    (a) About us (b) contact.html (c) href (d) Play games
  10. 10.Which of these is an empty tag? (a) <hr> (b) <h1> (c) <title> (d) <p>
  11. 11.📄 Can HTML on its own keep a high score? (a) Yes (b) No
  12. 12.📄 Which part holds everything you see on the page? (a) the head (b) the title (c) the doctype (d) the body
  13. 13.📋 How many items does this list show?
    <ul>
      <li>Guava</li>
      <li>Mango</li>
      <li>Jamun</li>
      <li>Banana</li>
    </ul>
  14. 14.📝 What does <hr> draw? (a) a link (b) a picture (c) a line across the page (d) a table
  15. 15.🔤 In “HTML”, what do the letters HT stand for? (a) Hot Tags (b) High Tech (c) HyperText (d) Home Text
  16. 16.🏷️ Which is the closing tag for <p>? (a) <p/> (b) <p> (c) </p> (d) <\p>
  17. 17.🔗 What does target="_blank" do to a link? (a) makes it bold (b) hides the link (c) makes it blank (d) opens it in a new tab
  18. 18.Which of these is an empty tag? (a) <b> (b) <li> (c) <img> (d) <p>
  19. 19.🖼️ How many pixels wide is the picture drawn?
    <img src="dog.jpg" alt="A happy dog" width="400">
  20. 20.True or false: <h1> has a closing tag. (a) False (b) True
  21. 21.💬 How many paragraphs show on the page?
    <p>I love mangoes.</p>
    <p>Fun facts</p>
    <p>Cricket is fun.</p>
    <!-- <p>The red kite</p> -->
  22. 22.🌐 Which one colours code to help us? (a) a code editor (b) a web server (c) a web browser
  23. 23.💬 Which text will NOT show on the page?
    <p>My pets</p>
    <!-- <p>Fun facts</p> -->
    <p>Cricket is fun.</p>
    <p>My best friend</p>
    (a) My pets (b) Cricket is fun. (c) Fun facts (d) My best friend
  24. 24.True or false: in <img>, alt sets how tall it is. (a) True (b) False
  25. 25.💬 Which text will NOT show on the page?
    <p>Hello, world!</p>
    <!-- <p>Cricket is fun.</p> -->
    <p>The red kite</p>
    (a) Cricket is fun. (b) The red kite (c) Hello, world!
  26. 26.🖼️ Which picture file does the browser load?
    <img src="moon.png" alt="The full moon" width="100">
    (a) bus.jpg (b) The full moon (c) fort.jpg (d) moon.png
  27. 27.Which of these goes in the head? (a) <table> (b) <h1> (c) <ul> (d) <meta charset="utf-8">
  28. 28.🏷️ Is </li> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
  29. 29.📄 Can HTML on its own run a game loop? (a) No (b) Yes
  30. 30.Which of these is true of a web browser? (a) sends pages over the net (b) colours code to help us (c) is where we type code (d) turns HTML into a page
  31. 31.True or false: <p> goes in the head. (a) True (b) False
  32. 32.🖼️ How many pixels wide is the picture drawn?
    <img src="dog.jpg" alt="A happy dog" width="100">
  33. 33.📝 On how many lines does the browser show this paragraph?
    <p>Stars shine<br>Roses are red<br>Rivers flow</p>
  34. 34.🔗 Which words do you click on?
    <a href="https://example.com">School news</a>
    (a) Take the quiz (b) https://example.com (c) School news (d) href
  35. 35.🔗 Which code links to about.html? (a) <a href="about.html"> (b) <a src="about.html"> (c) <a alt="about.html"> (d) <link about.html>
  36. 36.💬 Does the browser show comments on the page? (a) No (b) Yes
  37. 37.Which of these is true of a web browser? (a) opens web pages for us (b) shows line numbers (c) sends pages over the net (d) colours code to help us
  38. 38.🔍 Which line is missing its closing tag?
    line 1: <h2>My best friend</h2>
    line 2: <p>The red kite</p>
    line 3: <h1>Rain today
    (a) line 2 (b) line 1 (c) line 3
  39. 39.📝 What does <p> make? (a) a table (b) a picture (c) a paragraph (d) a link
  40. 40.🔍 Which line is missing its closing tag?
    line 1: <h2>My best friend</h2>
    line 2: <h3>Fun facts</h3>
    line 3: <p>Hello, world!
    (a) line 2 (b) line 1 (c) line 3

Answer key

  1. a web browser
  2. 2
  3. <a>
  4. bullets
  5. False
  6. <p>
  7. moon.png
  8. contact.html
  9. Play games
  10. <hr>
  11. No
  12. the body
  13. 4
  14. a line across the page
  15. HyperText
  16. </p>
  17. opens it in a new tab
  18. <img>
  19. 400
  20. True
  21. 3
  22. a code editor
  23. Fun facts
  24. False
  25. Cricket is fun.
  26. moon.png
  27. <meta charset="utf-8">
  28. a closing tag
  29. No
  30. turns HTML into a page
  31. False
  32. 100
  33. 3
  34. School news
  35. <a href="about.html">
  36. No
  37. opens web pages for us
  38. line 3
  39. a paragraph
  40. line 3

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