← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 573 · 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 picture file does the browser load?
    <img src="kite.png" alt="A red kite" width="350">
    (a) map.png (b) kite.png (c) A red kite (d) cake.jpg
  2. 2.🔍 One closing tag is missing. Which one?
    <h2>The red kite</h2>
    <p>Fun facts
    <u>Good morning!</u>
    (a) </u> (b) </h2> (c) </h1> (d) </p>
  3. 3.🔗 Which words do you click on?
    <a href="games.html">Take the quiz</a>
    (a) Take the quiz (b) games.html (c) Play games (d) href
  4. 4.🔠 Which heading shows the SMALLEST text: <h1>, <h4>, <h2> or <h5>? (a) <h4> (b) <h1> (c) <h2> (d) <h5>
  5. 5.🔠 Which heading shows the SMALLEST text: <h6>, <h2>, <h1> or <h3>? (a) <h6> (b) <h1> (c) <h3> (d) <h2>
  6. 6.🔍 One closing tag is missing. Which one?
    <em>I love mangoes.</em>
    <h2>My best friend</h2>
    <b>Hello, world!
    (a) </small> (b) </b> (c) </h2> (d) </em>
  7. 7.🔗 Which address opens when you click this link?
    <a href="art.html">School news</a>
    (a) news.html (b) art.html (c) quiz.html (d) School news
  8. 8.Which of these is true of a web browser? (a) sends pages over the net (b) colours code to help us (c) shows line numbers (d) shows pages from the web
  9. 9.🔍 One closing tag is missing. Which one?
    <h1>Hello, world!
    <b>Cricket is fun.</b>
    <small>I love mangoes.</small>
    (a) </small> (b) </h3> (c) </h1> (d) </b>
  10. 10.🏷️ Which is the closing tag for <u>? (a) </u> (b) <u> (c) <u/> (d) <\u>
  11. 11.📄 Where does <meta charset="utf-8"> go: in the head or in the body? (a) in the head (b) in the body
  12. 12.📝 Does <h1> have a closing tag, or is it an empty tag? (a) has a closing tag (b) an empty tag
  13. 13.Which of these is true of a code editor? (a) opens web pages for us (b) is where we type code (c) answers page requests (d) sends pages over the net
  14. 14.📋 Which tag goes around each item of a list? (a) <ul> (b) <p> (c) <li> (d) <ol>
  15. 15.🔗 Which attribute holds the address of a link? (a) href (b) src (c) alt (d) id
  16. 16.🔠 Which heading shows the SMALLEST text: <h3>, <h6>, <h2> or <h4>? (a) <h4> (b) <h2> (c) <h3> (d) <h6>
  17. 17.True or false: a web server sends pages over the net. (a) True (b) False
  18. 18.📋 What number does the browser show next to “Guava”?
    <ol start="8">
      <li>Papaya</li>
      <li>Banana</li>
      <li>Guava</li>
      <li>Litchi</li>
    </ol>
  19. 19.🔠 Are headings shown in bold by default? (a) Yes (b) No
  20. 20.🖼️ Does <img> need a closing tag? (a) Yes (b) No
  21. 21.🔍 One closing tag is missing. Which one?
    <em>The red kite</em>
    <u>Our school trip</u>
    <small>Hello, world!
    (a) </small> (b) </u> (c) </h2> (d) </em>
  22. 22.📋 Which list shows the steps of a recipe best? (a) <ol> (b) <br> (c) <ul> (d) <hr>
  23. 23.📋 Does this list show bullets or numbers?
    <ul>
      <li>Mango</li>
      <li>Banana</li>
    </ul>
    (a) numbers (b) bullets
  24. 24.📝 How many paragraphs does this code make?
    <p>I love mangoes.</p>
    <p>My pets</p>
    <p>Cricket is fun.</p>
    <p>I love mangoes.</p>
    <p>Fun facts</p>
  25. 25.📄 What does the browser tab show for this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>Art Gallery</title>
    </head>
    <body>
      <h1>All about me</h1>
      <p>Thanks for visiting.</p>
    </body>
    </html>
    (a) All about me (b) index.html (c) Thanks for visiting. (d) Art Gallery
  26. 26.True or false: HTML on its own can make tables. (a) False (b) True
  27. 27.💬 Can anyone read your comments by viewing the page source? (a) No (b) Yes
  28. 28.🔠 Which heading shows the BIGGEST text: <h6>, <h5>, <h1> or <h2>? (a) <h1> (b) <h5> (c) <h6> (d) <h2>
  29. 29.📛 In <a href="x.html">, what is href? (a) an element name (b) an attribute (c) a closing tag (d) a comment
  30. 30.📋 Which list suits a shopping list in any order? (a) <br> (b) <hr> (c) <ol> (d) <ul>
  31. 31.🔠 How many headings are in this code?
    <h1>Good morning!</h1>
    <h2>My best friend</h2>
    <h2>I love mangoes.</h2>
    <h4>Good morning!</h4>
  32. 32.🔢 In a basic web page file, which comes first: “</html>” or “</body>”? (a) </body> (b) </html>
  33. 33.📋 What number does the browser show next to “Grapes”?
    <ol start="5">
      <li>Papaya</li>
      <li>Grapes</li>
      <li>Orange</li>
      <li>Jamun</li>
      <li>Banana</li>
    </ol>
  34. 34.💬 Which text will NOT show on the page?
    <p>I love mangoes.</p>
    <!-- <p>Hello, world!</p> -->
    <p>Cricket is fun.</p>
    (a) I love mangoes. (b) Hello, world! (c) Cricket is fun.
  35. 35.📝 How many paragraphs does this code make?
    <p>Our school trip</p>
    <h2>Our school trip</h2>
    <h2>Hello, world!</h2>
    <h2>Our school trip</h2>
    <p>I love mangoes.</p>
  36. 36.🌐 Which one has an address bar? (a) a web browser (b) a web server (c) a code editor
  37. 37.🔍 One closing tag is missing. Which one?
    <h1>Good morning!</h1>
    <u>The red kite</u>
    <i>Hello, world!
    (a) </u> (b) </i> (c) </h1> (d) </em>
  38. 38.📝 How many paragraphs does this code make?
    <p>My best friend</p>
    <p>Hello, world!</p>
    <p>My pets</p>
  39. 39.💬 How many paragraphs show on the page?
    <!-- <p>My best friend</p> -->
    <!-- <p>Good morning!</p> -->
    <p>Cricket is fun.</p>
  40. 40.🖼️ How many pixels wide is the picture drawn?
    <img src="bus.jpg" alt="Our school bus" width="200">

Answer key

  1. kite.png
  2. </p>
  3. Take the quiz
  4. <h5>
  5. <h6>
  6. </b>
  7. art.html
  8. shows pages from the web
  9. </h1>
  10. </u>
  11. in the head
  12. has a closing tag
  13. is where we type code
  14. <li>
  15. href
  16. <h6>
  17. True
  18. 10
  19. Yes
  20. No
  21. </small>
  22. <ol>
  23. bullets
  24. 5
  25. Art Gallery
  26. True
  27. Yes
  28. <h1>
  29. an attribute
  30. <ul>
  31. 4
  32. </body>
  33. 6
  34. Hello, world!
  35. 2
  36. a web browser
  37. </i>
  38. 3
  39. 1
  40. 200

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