← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 694 · 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 the browser tab show for this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>My Hobbies</title>
    </head>
    <body>
      <h1>Easy snacks</h1>
      <p>I like to read.</p>
    </body>
    </html>
    (a) My Hobbies (b) index.html (c) I like to read. (d) Easy snacks
  2. 2.🌐 Which one answers page requests? (a) a web server (b) a web browser (c) a code editor
  3. 3.🔠 Which heading shows the BIGGEST text: <h2>, <h4>, <h1> or <h3>? (a) <h3> (b) <h4> (c) <h1> (d) <h2>
  4. 4.🔠 Which heading shows the BIGGEST text: <h6>, <h2>, <h4> or <h1>? (a) <h6> (b) <h1> (c) <h4> (d) <h2>
  5. 5.Which of these is an opening tag? (a) </li> (b) </h1> (c) <p> (d) </body>
  6. 6.Which of these goes in the head? (a) <p> (b) <a> (c) <title> (d) <table>
  7. 7.🔠 Which heading shows the SMALLEST text: <h2>, <h1>, <h3> or <h6>? (a) <h6> (b) <h2> (c) <h1> (d) <h3>
  8. 8.🔠 Which heading shows the SMALLEST text: <h1>, <h3>, <h4> or <h5>? (a) <h1> (b) <h4> (c) <h3> (d) <h5>
  9. 9.🔗 Which address opens when you click this link?
    <a href="news.html">Maths fun</a>
    (a) games.html (b) Maths fun (c) quiz.html (d) news.html
  10. 10.🖼️ How many pixels wide is the picture drawn?
    <img src="tiger.jpg" alt="A tiger asleep" width="100">
  11. 11.🏷️ Every HTML tag starts with which sign? (a) ( (b) < (c) { (d) [
  12. 12.📋 Does this list show bullets or numbers?
    <ol>
      <li>Guava</li>
      <li>Mango</li>
      <li>Jamun</li>
    </ol>
    (a) bullets (b) numbers
  13. 13.📝 How many paragraphs does this code make?
    <p>Our school trip</p>
    <p>The red kite</p>
    <p>The red kite</p>
  14. 14.🔠 Which heading shows the BIGGEST text: <h3>, <h4>, <h6> or <h5>? (a) <h4> (b) <h5> (c) <h6> (d) <h3>
  15. 15.🔠 How many <h1> headings should a page usually have? (a) 10 (b) 1 (c) 3 (d) 6
  16. 16.🔍 One closing tag is missing. Which one?
    <strong>Rain today</strong>
    <p>Hello, world!</p>
    <h1>My pets
    (a) </h1> (b) </p> (c) </strong> (d) </b>
  17. 17.Which of these has a closing tag? (a) <li> (b) <input> (c) <br> (d) <hr>
  18. 18.🔠 Which heading shows the BIGGEST text: <h6>, <h1>, <h2> or <h5>? (a) <h6> (b) <h2> (c) <h1> (d) <h5>
  19. 19.📝 What does <hr> draw? (a) a picture (b) a line across the page (c) a table (d) a link
  20. 20.🔢 In a basic web page file, which comes first: “<body>” or “</body>”? (a) </body> (b) <body>
  21. 21.🖼️ The picture cannot load. Which text does the browser show instead?
    <img src="bus.jpg" alt="Our school bus" width="250">
    (a) width (b) Our school bus (c) bus.jpg (d) An old fort
  22. 22.🖼️ Which picture file does the browser load?
    <img src="fort.jpg" alt="An old fort" width="200">
    (a) fort.jpg (b) kite.png (c) tiger.jpg (d) An old fort
  23. 23.🖼️ Does <img> need a closing tag? (a) Yes (b) No
  24. 24.🏷️ HTML marks up text using ___. (a) wires (b) tags (c) pixels (d) keys
  25. 25.💬 Which text will NOT show on the page?
    <p>Cricket is fun.</p>
    <p>Good morning!</p>
    <!-- <p>The red kite</p> -->
    (a) The red kite (b) Good morning! (c) Cricket is fun.
  26. 26.🔍 Which line is missing its closing tag?
    line 1: <i>My pets</i>
    line 2: <h3>Our school trip</h3>
    line 3: <u>Fun facts
    (a) line 3 (b) line 1 (c) line 2
  27. 27.Which of these is a closing tag? (a) <h1> (b) </p> (c) <body> (d) <p>
  28. 28.🔠 Which heading shows the BIGGEST text: <h4>, <h6>, <h2> or <h1>? (a) <h6> (b) <h4> (c) <h2> (d) <h1>
  29. 29.📋 Which list tag shows bullet points? (a) <li> (b) <ul> (c) <ol>
  30. 30.🔗 Which words do you click on?
    <a href="contact.html">Visit the site</a>
    (a) Visit the site (b) href (c) contact.html (d) Maths fun
  31. 31.Which of these is an empty tag? (a) <title> (b) <p> (c) <meta> (d) <b>
  32. 32.📝 How many paragraphs does this code make?
    <p>Good morning!</p>
    <p>Hello, world!</p>
    <h2>Fun facts</h2>
  33. 33.Which of these is an empty tag? (a) <ul> (b) <input> (c) <p> (d) <title>
  34. 34.🔗 What does target="_blank" do to a link? (a) hides the link (b) opens it in a new tab (c) makes it blank (d) makes it bold
  35. 35.🖼️ How many pixels wide is the picture drawn?
    <img src="moon.png" alt="The full moon" width="300">
  36. 36.Which of these goes in the head? (a) <h1> (b) <a> (c) <style> (d) <ul>
  37. 37.🔢 In a basic web page file, which comes FIRST? (a) </head> (b) <body> (c) </html> (d) <!DOCTYPE html>
  38. 38.🏷️ Is </b> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
  39. 39.📋 What number does the browser show next to “Guava”?
    <ol start="3">
      <li>Mango</li>
      <li>Orange</li>
      <li>Guava</li>
      <li>Jamun</li>
    </ol>
  40. 40.💬 How many paragraphs show on the page?
    <!-- <p>Good morning!</p> -->
    <p>Cricket is fun.</p>
    <!-- <p>Fun facts</p> -->

Answer key

  1. My Hobbies
  2. a web server
  3. <h1>
  4. <h1>
  5. <p>
  6. <title>
  7. <h6>
  8. <h5>
  9. news.html
  10. 100
  11. <
  12. numbers
  13. 3
  14. <h3>
  15. 1
  16. </h1>
  17. <li>
  18. <h1>
  19. a line across the page
  20. <body>
  21. Our school bus
  22. fort.jpg
  23. No
  24. tags
  25. The red kite
  26. line 3
  27. </p>
  28. <h1>
  29. <ul>
  30. Visit the site
  31. <meta>
  32. 2
  33. <input>
  34. opens it in a new tab
  35. 300
  36. <style>
  37. <!DOCTYPE html>
  38. a closing tag
  39. 5
  40. 1

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