← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 250 · 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 heading shows the SMALLEST text: <h2>, <h3>, <h4> or <h1>? (a) <h2> (b) <h4> (c) <h1> (d) <h3>
  2. 2.💬 Which text will NOT show on the page?
    <!-- <p>Rain today</p> -->
    <p>I love mangoes.</p>
    <p>Fun facts</p>
    (a) Fun facts (b) I love mangoes. (c) Rain today
  3. 3.💬 How does an HTML comment start? (a) <!-- (b) # (c) /* (d) //
  4. 4.🔢 In a basic web page file, which comes LAST? (a) </body> (b) </html> (c) <body> (d) <!DOCTYPE html>
  5. 5.💬 Which text will NOT show on the page?
    <p>My best friend</p>
    <!-- <p>Fun facts</p> -->
    <p>Good morning!</p>
    (a) Fun facts (b) Good morning! (c) My best friend
  6. 6.📝 Does <ul> have a closing tag, or is it an empty tag? (a) has a closing tag (b) an empty tag
  7. 7.True or false: <p> goes in the body. (a) False (b) True
  8. 8.🖼️ The picture cannot load. Which text does the browser show instead?
    <img src="bus.jpg" alt="Our school bus" width="100">
    (a) Our school bus (b) width (c) An old fort (d) bus.jpg
  9. 9.🔠 Which heading shows the SMALLEST text: <h3>, <h5>, <h2> or <h1>? (a) <h2> (b) <h1> (c) <h3> (d) <h5>
  10. 10.🔠 Which heading shows the SMALLEST text: <h1>, <h3>, <h5> or <h6>? (a) <h3> (b) <h6> (c) <h1> (d) <h5>
  11. 11.Which of these has a closing tag? (a) <input> (b) <br> (c) <b> (d) <meta>
  12. 12.Which of these is true of a web server? (a) shows line numbers (b) shows pages from the web (c) stores a website’s files (d) has an address bar
  13. 13.Which of these goes in the body? (a) <link rel="stylesheet"> (b) <table> (c) <title> (d) <meta charset="utf-8">
  14. 14.🔗 Which address opens when you click this link?
    <a href="games.html">Contact us</a>
    (a) contact.html (b) games.html (c) about.html (d) Contact us
  15. 15.🔠 Which heading shows the SMALLEST text: <h1>, <h5>, <h3> or <h2>? (a) <h5> (b) <h1> (c) <h2> (d) <h3>
  16. 16.🔗 Which words do you click on?
    <a href="maths.html">About us</a>
    (a) maths.html (b) Contact us (c) About us (d) href
  17. 17.True or false: <h1> goes in the body. (a) False (b) True
  18. 18.🖼️ Which tag puts a picture on a page? (a) <a> (b) <p> (c) <img> (d) <pic>
  19. 19.🔠 Which heading shows the BIGGEST text: <h1>, <h4>, <h5> or <h6>? (a) <h6> (b) <h1> (c) <h5> (d) <h4>
  20. 20.📋 Which list tag is an unordered list? (a) <ul> (b) <ol> (c) <li>
  21. 21.🏷️ Which is the closing tag for <b>? (a) <b/> (b) <b> (c) </b> (d) <\b>
  22. 22.📋 How many items does this list show?
    <ul>
      <li>Guava</li>
      <li>Papaya</li>
      <li>Mango</li>
      <li>Orange</li>
    </ul>
  23. 23.🔠 How many headings are in this code?
    <h1>Good morning!</h1>
    <p>The red kite</p>
    <p>Fun facts</p>
  24. 24.True or false: a code editor answers page requests. (a) True (b) False
  25. 25.🔗 Which address opens when you click this link?
    <a href="maths.html">School news</a>
    (a) maths.html (b) art.html (c) School news (d) news.html
  26. 26.💬 Can anyone read your comments by viewing the page source? (a) No (b) Yes
  27. 27.🔠 Which heading shows the BIGGEST text: <h6>, <h2>, <h3> or <h4>? (a) <h4> (b) <h3> (c) <h6> (d) <h2>
  28. 28.💬 Which text will NOT show on the page?
    <p>Hello, world!</p>
    <!-- <p>The red kite</p> -->
    <p>Our school trip</p>
    <p>Cricket is fun.</p>
    (a) Our school trip (b) Cricket is fun. (c) Hello, world! (d) The red kite
  29. 29.Which of these is an opening tag? (a) </body> (b) <b> (c) </p> (d) </h1>
  30. 30.True or false: a web server shows pages from the web. (a) False (b) True
  31. 31.🔢 In a basic web page file, which comes first: “<html>” or “<!DOCTYPE html>”? (a) <!DOCTYPE html> (b) <html>
  32. 32.🔠 How many headings are in this code?
    <h1>Rain today</h1>
    <p>Good morning!</p>
    <p>I love mangoes.</p>
    <h4>Rain today</h4>
    <h4>Fun facts</h4>
  33. 33.📋 Which list tag is one item of a list? (a) <li> (b) <ul> (c) <ol>
  34. 34.🔍 One closing tag is missing. Which one?
    <em>My best friend</em>
    <i>My pets</i>
    <b>I love mangoes.
    (a) </i> (b) </b> (c) </em> (d) </h1>
  35. 35.💬 Which text will NOT show on the page?
    <!-- <p>Good morning!</p> -->
    <p>My pets</p>
    <p>Cricket is fun.</p>
    (a) Good morning! (b) Cricket is fun. (c) My pets
  36. 36.🔗 Which code links to about.html? (a) <link about.html> (b) <a src="about.html"> (c) <a alt="about.html"> (d) <a href="about.html">
  37. 37.Which of these is true of a web browser? (a) answers page requests (b) turns HTML into a page (c) is where we type code (d) shows line numbers
  38. 38.🔠 Which heading shows the SMALLEST text: <h4>, <h2>, <h3> or <h6>? (a) <h6> (b) <h2> (c) <h4> (d) <h3>
  39. 39.🔍 Which is the odd one out? (a) stores a website’s files (b) answers page requests (c) hosts websites online (d) shows line numbers
  40. 40.🔗 Which address opens when you click this link?
    <a href="about.html">Maths fun</a>
    (a) about.html (b) https://example.com (c) Maths fun (d) contact.html

Answer key

  1. <h4>
  2. Rain today
  3. <!--
  4. </html>
  5. Fun facts
  6. has a closing tag
  7. True
  8. Our school bus
  9. <h5>
  10. <h6>
  11. <b>
  12. stores a website’s files
  13. <table>
  14. games.html
  15. <h5>
  16. About us
  17. True
  18. <img>
  19. <h1>
  20. <ul>
  21. </b>
  22. 4
  23. 1
  24. False
  25. maths.html
  26. Yes
  27. <h2>
  28. The red kite
  29. <b>
  30. False
  31. <!DOCTYPE html>
  32. 3
  33. <li>
  34. </b>
  35. Good morning!
  36. <a href="about.html">
  37. turns HTML into a page
  38. <h6>
  39. shows line numbers
  40. about.html

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