← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 716 · 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="contact.html">Art corner</a>
    (a) School news (b) Art corner (c) contact.html (d) href
  2. 2.True or false: <ul> is an ordered list. (a) False (b) True
  3. 3.🔗 Which words do you click on?
    <a href="https://example.com">Contact us</a>
    (a) href (b) https://example.com (c) Contact us (d) Visit the site
  4. 4.📋 What number does the browser show next to “Jamun”?
    <ol>
      <li>Guava</li>
      <li>Litchi</li>
      <li>Jamun</li>
      <li>Grapes</li>
    </ol>
  5. 5.🔠 Which heading shows the BIGGEST text: <h6>, <h5>, <h1> or <h4>? (a) <h5> (b) <h1> (c) <h4> (d) <h6>
  6. 6.📄 What does the browser tab show for this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>My Hobbies</title>
    </head>
    <body>
      <h1>Match report</h1>
      <p>We won by 5 runs.</p>
    </body>
    </html>
    (a) index.html (b) We won by 5 runs. (c) Match report (d) My Hobbies
  7. 7.🔠 Which heading shows the SMALLEST text: <h2>, <h4>, <h6> or <h1>? (a) <h2> (b) <h4> (c) <h1> (d) <h6>
  8. 8.🔠 Which heading shows the BIGGEST text: <h5>, <h2>, <h6> or <h3>? (a) <h3> (b) <h6> (c) <h2> (d) <h5>
  9. 9.🔢 In a basic web page file, which comes LAST? (a) </html> (b) <!DOCTYPE html> (c) </body> (d) <html>
  10. 10.🔠 Which heading shows the BIGGEST text: <h5>, <h3>, <h4> or <h6>? (a) <h4> (b) <h3> (c) <h5> (d) <h6>
  11. 11.📄 Which part holds everything you see on the page? (a) the title (b) the body (c) the doctype (d) the head
  12. 12.True or false: <b> is an empty tag. (a) True (b) False
  13. 13.Which of these has a closing tag? (a) <hr> (b) <img> (c) <meta> (d) <p>
  14. 14.🌐 Which one opens web pages for us? (a) a code editor (b) a web server (c) a web browser
  15. 15.💬 Does the browser show comments on the page? (a) Yes (b) No
  16. 16.🔠 Which heading shows the BIGGEST text: <h5>, <h3>, <h1> or <h4>? (a) <h4> (b) <h1> (c) <h3> (d) <h5>
  17. 17.🖼️ Which picture file does the browser load?
    <img src="moon.png" alt="The full moon" width="150">
    (a) bus.jpg (b) moon.png (c) fort.jpg (d) The full moon
  18. 18.🖼️ Which picture file does the browser load?
    <img src="kite.png" alt="A red kite" width="300">
    (a) map.png (b) kite.png (c) A red kite (d) cake.jpg
  19. 19.🔗 Which words do you click on?
    <a href="https://example.com">Take the quiz</a>
    (a) Take the quiz (b) Play games (c) href (d) https://example.com
  20. 20.🏷️ Is <title> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
  21. 21.📄 Where does <title> go: in the head or in the body? (a) in the head (b) in the body
  22. 22.🔍 One closing tag is missing. Which one?
    <h2>Good morning!</h2>
    <b>Cricket is fun.
    <h3>The red kite</h3>
    (a) </h2> (b) </h3> (c) </i> (d) </b>
  23. 23.🏷️ Is </body> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
  24. 24.📛 In <a href="x.html">, what is href? (a) a comment (b) a closing tag (c) an attribute (d) an element name
  25. 25.🔗 Where does this link open?
    <a href="contact.html">Take the quiz</a>
    (a) in a new tab (b) in the same tab
  26. 26.🔗 Which address opens when you click this link?
    <a href="games.html">Play games</a>
    (a) contact.html (b) games.html (c) about.html (d) Play games
  27. 27.🔗 Which words do you click on?
    <a href="news.html">Play games</a>
    (a) About us (b) href (c) news.html (d) Play games
  28. 28.Which of these is a closing tag? (a) <h1> (b) </h1> (c) <body> (d) <title>
  29. 29.🔗 What does target="_blank" do to a link? (a) hides the link (b) makes it blank (c) makes it bold (d) opens it in a new tab
  30. 30.📝 What does <hr> draw? (a) a picture (b) a table (c) a link (d) a line across the page
  31. 31.🖼️ Which picture file does the browser load?
    <img src="moon.png" alt="The full moon" width="100">
    (a) fort.jpg (b) The full moon (c) bus.jpg (d) moon.png
  32. 32.💬 Which text will NOT show on the page?
    <!-- <p>I love mangoes.</p> -->
    <p>Our school trip</p>
    <p>Fun facts</p>
    (a) I love mangoes. (b) Fun facts (c) Our school trip
  33. 33.📄 What is the first line of an HTML5 page? (a) <head> (b) <body> (c) <html> (d) <!DOCTYPE html>
  34. 34.🔗 Which address opens when you click this link?
    <a href="games.html">About us</a>
    (a) about.html (b) games.html (c) About us (d) contact.html
  35. 35.💬 How many paragraphs show on the page?
    <!-- <p>Fun facts</p> -->
    <!-- <p>I love mangoes.</p> -->
    <p>The red kite</p>
  36. 36.🔠 Which heading shows the BIGGEST text: <h3>, <h6>, <h5> or <h2>? (a) <h5> (b) <h2> (c) <h3> (d) <h6>
  37. 37.🔠 Which heading shows the BIGGEST text: <h2>, <h3>, <h6> or <h5>? (a) <h3> (b) <h6> (c) <h5> (d) <h2>
  38. 38.🔠 Which heading shows the SMALLEST text: <h5>, <h6>, <h2> or <h3>? (a) <h6> (b) <h5> (c) <h2> (d) <h3>
  39. 39.True or false: HTML on its own cannot make tables. (a) False (b) True
  40. 40.🔠 Which heading shows the BIGGEST text: <h6>, <h3>, <h4> or <h5>? (a) <h5> (b) <h4> (c) <h3> (d) <h6>

Answer key

  1. Art corner
  2. False
  3. Contact us
  4. 3
  5. <h1>
  6. My Hobbies
  7. <h6>
  8. <h2>
  9. </html>
  10. <h3>
  11. the body
  12. False
  13. <p>
  14. a web browser
  15. No
  16. <h1>
  17. moon.png
  18. kite.png
  19. Take the quiz
  20. an opening tag
  21. in the head
  22. </b>
  23. a closing tag
  24. an attribute
  25. in the same tab
  26. games.html
  27. Play games
  28. </h1>
  29. opens it in a new tab
  30. a line across the page
  31. moon.png
  32. I love mangoes.
  33. <!DOCTYPE html>
  34. games.html
  35. 1
  36. <h2>
  37. <h2>
  38. <h6>
  39. False
  40. <h3>

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