← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 777 · 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.📋 Does this list show bullets or numbers?
    <ul>
      <li>Guava</li>
      <li>Papaya</li>
      <li>Litchi</li>
    </ul>
    (a) bullets (b) numbers
  2. 2.🖼️ Does <img> need a closing tag? (a) Yes (b) No
  3. 3.🔍 One closing tag is missing. Which one?
    <i>Cricket is fun.</i>
    <small>I love mangoes.</small>
    <p>Our school trip
    (a) </small> (b) </p> (c) </h2> (d) </i>
  4. 4.📄 What does the browser tab show for this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>Class 7 Blog</title>
    </head>
    <body>
      <h1>Planets</h1>
      <p>Try this poha.</p>
    </body>
    </html>
    (a) Class 7 Blog (b) index.html (c) Planets (d) Try this poha.
  5. 5.🔠 How many heading levels does HTML have? (a) 4 (b) 6 (c) 10 (d) 3
  6. 6.Which of these goes in the head? (a) <meta charset="utf-8"> (b) <table> (c) <img> (d) <a>
  7. 7.🔗 Which words do you click on?
    <a href="news.html">Take the quiz</a>
    (a) Play games (b) news.html (c) Take the quiz (d) href
  8. 8.💬 Which text will NOT show on the page?
    <!-- <p>Good morning!</p> -->
    <p>Cricket is fun.</p>
    <p>I love mangoes.</p>
    (a) Cricket is fun. (b) I love mangoes. (c) Good morning!
  9. 9.Which of these is an empty tag? (a) <title> (b) <img> (c) <p> (d) <b>
  10. 10.📄 Where does <table> go: in the head or in the body? (a) in the body (b) in the head
  11. 11.💬 Which text will NOT show on the page?
    <p>Good morning!</p>
    <p>I love mangoes.</p>
    <!-- <p>Fun facts</p> -->
    (a) Good morning! (b) Fun facts (c) I love mangoes.
  12. 12.True or false: <meta charset="utf-8"> goes in the body. (a) False (b) True
  13. 13.📋 Does this list show bullets or numbers?
    <ul>
      <li>Orange</li>
      <li>Banana</li>
      <li>Jamun</li>
    </ul>
    (a) bullets (b) numbers
  14. 14.🔗 Which words do you click on?
    <a href="https://example.com">Visit the site</a>
    (a) Visit the site (b) https://example.com (c) Maths fun (d) href
  15. 15.📋 What number does the browser show next to “Guava”?
    <ol start="4">
      <li>Orange</li>
      <li>Jamun</li>
      <li>Banana</li>
      <li>Litchi</li>
      <li>Guava</li>
      <li>Papaya</li>
    </ol>
  16. 16.💬 Which text will NOT show on the page?
    <p>Good morning!</p>
    <p>My best friend</p>
    <!-- <p>Fun facts</p> -->
    (a) Good morning! (b) Fun facts (c) My best friend
  17. 17.📋 Which list tag is an unordered list? (a) <ol> (b) <li> (c) <ul>
  18. 18.🔗 What does target="_blank" do to a link? (a) hides the link (b) makes it blank (c) opens it in a new tab (d) makes it bold
  19. 19.True or false: HTML on its own can make headings. (a) True (b) False
  20. 20.🏷️ Which is the closing tag for <p>? (a) <\p> (b) <p> (c) </p> (d) <p/>
  21. 21.💬 Does the browser show comments on the page? (a) Yes (b) No
  22. 22.🏷️ Is <li> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
  23. 23.📋 How many items does this list show?
    <ul>
      <li>Mango</li>
      <li>Banana</li>
    </ul>
  24. 24.🏷️ Which is the closing tag for <h1>? (a) <h1> (b) <\h1> (c) <h1/> (d) </h1>
  25. 25.Which of these goes in the head? (a) <h1> (b) <img> (c) <link rel="stylesheet"> (d) <ul>
  26. 26.🔗 Where does this link open?
    <a href="news.html" target="_blank">Play games</a>
    (a) in the same tab (b) in a new tab
  27. 27.🏷️ Is <h1> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
  28. 28.True or false: <ul> is an unordered list. (a) False (b) True
  29. 29.🔗 Which words do you click on?
    <a href="news.html">About us</a>
    (a) href (b) Contact us (c) news.html (d) About us
  30. 30.📋 Which list shows the steps of a recipe best? (a) <ul> (b) <br> (c) <ol> (d) <hr>
  31. 31.🖼️ Which picture file does the browser load?
    <img src="tiger.jpg" alt="A tiger asleep" width="200">
    (a) A tiger asleep (b) tiger.jpg (c) map.png (d) kite.png
  32. 32.True or false: <ul> shows bullet points. (a) False (b) True
  33. 33.📛 In <a href="x.html">, what is href? (a) an attribute (b) an element name (c) a comment (d) a closing tag
  34. 34.📋 Which list tag lists things in any order? (a) <ol> (b) <li> (c) <ul>
  35. 35.🔗 Which words do you click on?
    <a href="news.html">Art corner</a>
    (a) School news (b) news.html (c) Art corner (d) href
  36. 36.🔠 Which heading shows the SMALLEST text: <h4>, <h6>, <h3> or <h5>? (a) <h4> (b) <h6> (c) <h3> (d) <h5>
  37. 37.📝 How many paragraphs does this code make?
    <p>Hello, world!</p>
    <p>My pets</p>
    <p>I love mangoes.</p>
    <h2>My best friend</h2>
    <p>Fun facts</p>
  38. 38.📄 Where does <ul> go: in the head or in the body? (a) in the body (b) in the head
  39. 39.💬 How many paragraphs show on the page?
    <p>The red kite</p>
    <p>I love mangoes.</p>
    <!-- <p>Cricket is fun.</p> -->
  40. 40.Which of these has a closing tag? (a) <img> (b) <ul> (c) <input> (d) <meta>

Answer key

  1. bullets
  2. No
  3. </p>
  4. Class 7 Blog
  5. 6
  6. <meta charset="utf-8">
  7. Take the quiz
  8. Good morning!
  9. <img>
  10. in the body
  11. Fun facts
  12. False
  13. bullets
  14. Visit the site
  15. 8
  16. Fun facts
  17. <ul>
  18. opens it in a new tab
  19. True
  20. </p>
  21. No
  22. an opening tag
  23. 2
  24. </h1>
  25. <link rel="stylesheet">
  26. in a new tab
  27. an opening tag
  28. True
  29. About us
  30. <ol>
  31. tiger.jpg
  32. True
  33. an attribute
  34. <ul>
  35. Art corner
  36. <h6>
  37. 4
  38. in the body
  39. 2
  40. <ul>

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