← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 365 · 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.💬 How does an HTML comment start? (a) # (b) /* (c) // (d) <!--
  2. 2.📄 What is the big heading shown on this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>Cricket Club</title>
    </head>
    <body>
      <h1>All about me</h1>
      <p>I like to read.</p>
    </body>
    </html>
    (a) I like to read. (b) body (c) All about me (d) Cricket Club
  3. 3.🖼️ Does <img> need a closing tag? (a) Yes (b) No
  4. 4.🔗 Which words do you click on?
    <a href="games.html">About us</a>
    (a) Contact us (b) About us (c) href (d) games.html
  5. 5.🌐 Which one opens web pages for us? (a) a code editor (b) a web server (c) a web browser
  6. 6.🔗 Which words do you click on?
    <a href="about.html">Contact us</a>
    (a) Contact us (b) Visit the site (c) about.html (d) href
  7. 7.📋 What number does the browser show next to “Grapes”?
    <ol start="7">
      <li>Papaya</li>
      <li>Grapes</li>
      <li>Banana</li>
      <li>Orange</li>
      <li>Litchi</li>
      <li>Mango</li>
    </ol>
  8. 8.🔤 In “HTML”, what do the letters HT stand for? (a) Hot Tags (b) Home Text (c) High Tech (d) HyperText
  9. 9.🏷️ Every HTML tag starts with which sign? (a) ( (b) { (c) < (d) [
  10. 10.🔠 Which heading shows the SMALLEST text: <h3>, <h5>, <h4> or <h1>? (a) <h5> (b) <h3> (c) <h4> (d) <h1>
  11. 11.📝 How many paragraphs does this code make?
    <p>I love mangoes.</p>
    <p>My pets</p>
    <p>Hello, world!</p>
  12. 12.True or false: <img> goes in the head. (a) True (b) False
  13. 13.🔠 Are headings shown in bold by default? (a) Yes (b) No
  14. 14.📄 What does the browser tab show for this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>Class 7 Blog</title>
    </head>
    <body>
      <h1>Match report</h1>
      <p>Thanks for visiting.</p>
    </body>
    </html>
    (a) Class 7 Blog (b) Thanks for visiting. (c) Match report (d) index.html
  15. 15.🔠 Which heading shows the BIGGEST text: <h6>, <h2>, <h5> or <h3>? (a) <h2> (b) <h3> (c) <h6> (d) <h5>
  16. 16.🌐 Which one sends pages over the net? (a) a web browser (b) a web server (c) a code editor
  17. 17.🏷️ Which is the closing tag for <b>? (a) <b> (b) </b> (c) <\b> (d) <b/>
  18. 18.📄 Can HTML on its own make tables? (a) No (b) Yes
  19. 19.True or false: HTML on its own can make headings. (a) False (b) True
  20. 20.🔗 Where does this link open?
    <a href="about.html">Contact us</a>
    (a) in a new tab (b) in the same tab
  21. 21.🔠 How many headings are in this code?
    <h1>Cricket is fun.</h1>
    <h4>The red kite</h4>
    <h2>Cricket is fun.</h2>
    <h2>Our school trip</h2>
    <p>Good morning!</p>
  22. 22.🔠 Which heading shows the SMALLEST text: <h4>, <h5>, <h1> or <h6>? (a) <h5> (b) <h6> (c) <h4> (d) <h1>
  23. 23.💬 Why do coders write comments? (a) to leave notes (b) to add colour (c) to make links (d) to show pictures
  24. 24.💬 How does an HTML comment end? (a) */ (b) --> (c) // (d) >>
  25. 25.🔗 Which words do you click on?
    <a href="games.html">Contact us</a>
    (a) Contact us (b) href (c) Visit the site (d) games.html
  26. 26.Which of these is an opening tag? (a) </p> (b) </b> (c) <p> (d) </title>
  27. 27.🔗 Which words do you click on?
    <a href="art.html">Take the quiz</a>
    (a) art.html (b) Play games (c) href (d) Take the quiz
  28. 28.🔠 Which heading shows the SMALLEST text: <h4>, <h2>, <h1> or <h3>? (a) <h3> (b) <h2> (c) <h4> (d) <h1>
  29. 29.🔠 How many headings are in this code?
    <h1>I love mangoes.</h1>
    <p>My pets</p>
    <p>My pets</p>
    <h2>Rain today</h2>
    <p>Fun facts</p>
  30. 30.🔍 Which is the odd one out? (a) turns HTML into a page (b) shows pages from the web (c) answers page requests (d) opens web pages for us
  31. 31.🔗 What does target="_blank" do to a link? (a) opens it in a new tab (b) makes it bold (c) makes it blank (d) hides the link
  32. 32.🔗 Which words do you click on?
    <a href="https://example.com">Maths fun</a>
    (a) href (b) Art corner (c) Maths fun (d) https://example.com
  33. 33.Which of these is an empty tag? (a) <li> (b) <meta> (c) <h1> (d) <title>
  34. 34.🔠 Which heading shows the SMALLEST text: <h6>, <h3>, <h1> or <h4>? (a) <h1> (b) <h6> (c) <h3> (d) <h4>
  35. 35.Which of these has a closing tag? (a) <p> (b) <img> (c) <input> (d) <br>
  36. 36.True or false: <li> goes inside ul or ol. (a) False (b) True
  37. 37.📋 Which tag goes around each item of a list? (a) <p> (b) <li> (c) <ul> (d) <ol>
  38. 38.🔗 Which address opens when you click this link?
    <a href="games.html">Contact us</a>
    (a) about.html (b) contact.html (c) games.html (d) Contact us
  39. 39.📝 Does <input> have a closing tag, or is it an empty tag? (a) has a closing tag (b) an empty tag
  40. 40.🖼️ Which picture file does the browser load?
    <img src="moon.png" alt="The full moon" width="250">
    (a) bus.jpg (b) The full moon (c) fort.jpg (d) moon.png

Answer key

  1. <!--
  2. All about me
  3. No
  4. About us
  5. a web browser
  6. Contact us
  7. 8
  8. HyperText
  9. <
  10. <h5>
  11. 3
  12. False
  13. Yes
  14. Class 7 Blog
  15. <h2>
  16. a web server
  17. </b>
  18. Yes
  19. True
  20. in the same tab
  21. 4
  22. <h6>
  23. to leave notes
  24. -->
  25. Contact us
  26. <p>
  27. Take the quiz
  28. <h4>
  29. 2
  30. answers page requests
  31. opens it in a new tab
  32. Maths fun
  33. <meta>
  34. <h6>
  35. <p>
  36. True
  37. <li>
  38. games.html
  39. an empty tag
  40. moon.png

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