← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 467 · 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.📝 What does <br> do? (a) adds a picture (b) makes a list (c) makes text bold (d) starts a new line
  2. 2.🔍 One closing tag is missing. Which one?
    <small>Rain today</small>
    <i>Good morning!</i>
    <strong>Cricket is fun.
    (a) </strong> (b) </u> (c) </i> (d) </small>
  3. 3.📄 Can HTML on its own run a game loop? (a) Yes (b) No
  4. 4.🔠 Which heading shows the BIGGEST text: <h4>, <h2>, <h3> or <h6>? (a) <h6> (b) <h4> (c) <h3> (d) <h2>
  5. 5.🔗 Where does this link open?
    <a href="about.html" target="_blank">Play games</a>
    (a) in a new tab (b) in the same tab
  6. 6.True or false: <b> is an empty tag. (a) True (b) False
  7. 7.📋 How many items does this list show?
    <ol>
      <li>Mango</li>
      <li>Jamun</li>
      <li>Grapes</li>
      <li>Papaya</li>
      <li>Litchi</li>
    </ol>
  8. 8.🔠 Which heading shows the BIGGEST text: <h2>, <h6>, <h4> or <h1>? (a) <h1> (b) <h6> (c) <h4> (d) <h2>
  9. 9.🔠 How many headings are in this code?
    <h1>Fun facts</h1>
    <h4>Our school trip</h4>
    <h4>The red kite</h4>
  10. 10.📝 Does <img> have a closing tag, or is it an empty tag? (a) has a closing tag (b) an empty tag
  11. 11.True or false: <ul> is an unordered list. (a) False (b) True
  12. 12.Which of these is an opening tag? (a) </h1> (b) </b> (c) </title> (d) <p>
  13. 13.🔢 In a basic web page file, which comes LAST? (a) </head> (b) <!DOCTYPE html> (c) </body> (d) </html>
  14. 14.🔗 Which address opens when you click this link?
    <a href="games.html">School news</a>
    (a) School news (b) games.html (c) about.html (d) contact.html
  15. 15.📋 What number does the browser show next to “Papaya”?
    <ol start="3">
      <li>Orange</li>
      <li>Grapes</li>
      <li>Banana</li>
      <li>Guava</li>
      <li>Litchi</li>
      <li>Papaya</li>
    </ol>
  16. 16.🔗 Which words do you click on?
    <a href="news.html">Visit the site</a>
    (a) news.html (b) Maths fun (c) href (d) Visit the site
  17. 17.🔢 In a basic web page file, which comes first: “</html>” or “<html>”? (a) </html> (b) <html>
  18. 18.🔗 Which address opens when you click this link?
    <a href="maths.html">Take the quiz</a>
    (a) maths.html (b) Take the quiz (c) news.html (d) art.html
  19. 19.🔠 Which heading shows the BIGGEST text: <h6>, <h2>, <h4> or <h5>? (a) <h4> (b) <h2> (c) <h6> (d) <h5>
  20. 20.📝 How many paragraphs does this code make?
    <p>Cricket is fun.</p>
    <p>Hello, world!</p>
    <p>My pets</p>
    <p>Our school trip</p>
    <p>Good morning!</p>
    <p>My pets</p>
  21. 21.💬 How many paragraphs show on the page?
    <!-- <p>Rain today</p> -->
    <p>I love mangoes.</p>
    <!-- <p>Good morning!</p> -->
  22. 22.True or false: <meta charset="utf-8"> goes in the body. (a) False (b) True
  23. 23.🔗 Where does this link open?
    <a href="https://example.com" target="_blank">Take the quiz</a>
    (a) in the same tab (b) in a new tab
  24. 24.💾 A web page file usually ends with which extension? (a) .png (b) .mp3 (c) .txt (d) .html
  25. 25.🔗 Where does this link open?
    <a href="maths.html" target="_blank">Contact us</a>
    (a) in the same tab (b) in a new tab
  26. 26.🖼️ The picture cannot load. Which text does the browser show instead?
    <img src="dog.jpg" alt="A happy dog" width="300">
    (a) dog.jpg (b) width (c) A happy dog (d) The full moon
  27. 27.🔍 One closing tag is missing. Which one?
    <small>My pets
    <h3>Our school trip</h3>
    <h1>My best friend</h1>
    (a) </h2> (b) </h1> (c) </small> (d) </h3>
  28. 28.📄 What is the first line of an HTML5 page? (a) <body> (b) <html> (c) <!DOCTYPE html> (d) <head>
  29. 29.🔍 One closing tag is missing. Which one?
    <u>The red kite</u>
    <h1>Cricket is fun.</h1>
    <h3>I love mangoes.
    (a) </u> (b) </p> (c) </h1> (d) </h3>
  30. 30.💬 How many paragraphs show on the page?
    <!-- <p>Hello, world!</p> -->
    <p>Rain today</p>
    <!-- <p>Good morning!</p> -->
  31. 31.📋 How many items does this list show?
    <ul>
      <li>Litchi</li>
      <li>Guava</li>
    </ul>
  32. 32.🖼️ Which tag puts a picture on a page? (a) <p> (b) <pic> (c) <a> (d) <img>
  33. 33.🖼️ Which attribute of <img> shows if the image fails? (a) width (b) src (c) height (d) alt
  34. 34.🔠 Which tag is used for the main title on a page? (a) <br> (b) <p> (c) <h1> (d) <h6>
  35. 35.Which of these is an opening tag? (a) </h1> (b) </title> (c) <b> (d) </li>
  36. 36.🖼️ The picture cannot load. Which text does the browser show instead?
    <img src="dog.jpg" alt="A happy dog" width="250">
    (a) dog.jpg (b) The full moon (c) A happy dog (d) width
  37. 37.💬 Does the browser show comments on the page? (a) Yes (b) No
  38. 38.🔠 Which heading shows the SMALLEST text: <h2>, <h6>, <h3> or <h4>? (a) <h4> (b) <h3> (c) <h2> (d) <h6>
  39. 39.🔠 Which heading shows the BIGGEST text: <h6>, <h5>, <h1> or <h2>? (a) <h5> (b) <h2> (c) <h1> (d) <h6>
  40. 40.🔗 What does target="_blank" do to a link? (a) opens it in a new tab (b) makes it bold (c) hides the link (d) makes it blank

Answer key

  1. starts a new line
  2. </strong>
  3. No
  4. <h2>
  5. in a new tab
  6. False
  7. 5
  8. <h1>
  9. 3
  10. an empty tag
  11. True
  12. <p>
  13. </html>
  14. games.html
  15. 8
  16. Visit the site
  17. <html>
  18. maths.html
  19. <h2>
  20. 6
  21. 1
  22. False
  23. in a new tab
  24. .html
  25. in a new tab
  26. A happy dog
  27. </small>
  28. <!DOCTYPE html>
  29. </h3>
  30. 1
  31. 2
  32. <img>
  33. alt
  34. <h1>
  35. <b>
  36. A happy dog
  37. No
  38. <h6>
  39. <h1>
  40. opens it in a new tab

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