← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 155 · 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 BIGGEST text: <h5>, <h1>, <h6> or <h4>? (a) <h6> (b) <h4> (c) <h1> (d) <h5>
  2. 2.📋 Which list shows the steps of a recipe best? (a) <br> (b) <ul> (c) <hr> (d) <ol>
  3. 3.🔗 Where does this link open?
    <a href="quiz.html" target="_blank">School news</a>
    (a) in the same tab (b) in a new tab
  4. 4.🔍 One closing tag is missing. Which one?
    <em>Our school trip</em>
    <u>Fun facts</u>
    <strong>The red kite
    (a) </u> (b) </h3> (c) </em> (d) </strong>
  5. 5.True or false: <ul> shows 1, 2, 3 numbers. (a) False (b) True
  6. 6.🌐 Which one answers page requests? (a) a code editor (b) a web server (c) a web browser
  7. 7.🔠 Which heading shows the BIGGEST text: <h2>, <h3>, <h6> or <h4>? (a) <h2> (b) <h3> (c) <h4> (d) <h6>
  8. 8.🔗 What does HyperText mean? (a) very big text (b) text with links (c) text in colour (d) secret text
  9. 9.🔗 Where does this link open?
    <a href="news.html" target="_blank">Maths fun</a>
    (a) in the same tab (b) in a new tab
  10. 10.💬 How many paragraphs show on the page?
    <p>I love mangoes.</p>
    <p>Hello, world!</p>
    <!-- <p>Cricket is fun.</p> -->
    <p>My best friend</p>
  11. 11.🔗 Which words do you click on?
    <a href="news.html">School news</a>
    (a) href (b) Take the quiz (c) news.html (d) School news
  12. 12.🖼️ Why do we add alt text to an image? (a) to load it faster (b) to colour it (c) to describe the image (d) to make it bigger
  13. 13.🔗 Which words do you click on?
    <a href="games.html">Visit the site</a>
    (a) games.html (b) href (c) Maths fun (d) Visit the site
  14. 14.🔤 In “HTML”, what do the letters HT stand for? (a) High Tech (b) Home Text (c) HyperText (d) Hot Tags
  15. 15.🔗 Which address opens when you click this link?
    <a href="https://example.com">Art corner</a>
    (a) https://example.com (b) Art corner (c) art.html (d) maths.html
  16. 16.🔠 Which tag is the least important heading? (a) <h3> (b) <h1> (c) <p> (d) <h6>
  17. 17.True or false: a web server shows pages from the web. (a) False (b) True
  18. 18.📄 What does the browser tab show for this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>My Hobbies</title>
    </head>
    <body>
      <h1>Match report</h1>
      <p>Here is my best one.</p>
    </body>
    </html>
    (a) Here is my best one. (b) index.html (c) My Hobbies (d) Match report
  19. 19.📋 Which list tag is one item of a list? (a) <li> (b) <ul> (c) <ol>
  20. 20.🔠 Which heading shows the SMALLEST text: <h5>, <h4>, <h6> or <h3>? (a) <h4> (b) <h5> (c) <h6> (d) <h3>
  21. 21.True or false: <ul> is an empty tag. (a) False (b) True
  22. 22.📋 Does this list show bullets or numbers?
    <ol>
      <li>Litchi</li>
      <li>Orange</li>
      <li>Grapes</li>
    </ol>
    (a) numbers (b) bullets
  23. 23.🖼️ The picture cannot load. Which text does the browser show instead?
    <img src="map.png" alt="Map of India" width="100">
    (a) Map of India (b) map.png (c) width (d) Birthday cake
  24. 24.🌐 Which one opens web pages for us? (a) a web server (b) a code editor (c) a web browser
  25. 25.🔠 Which heading shows the BIGGEST text: <h2>, <h5>, <h6> or <h3>? (a) <h6> (b) <h3> (c) <h5> (d) <h2>
  26. 26.🖼️ Which picture file does the browser load?
    <img src="kite.png" alt="A red kite" width="150">
    (a) A red kite (b) cake.jpg (c) kite.png (d) map.png
  27. 27.💬 Can anyone read your comments by viewing the page source? (a) No (b) Yes
  28. 28.True or false: a code editor is where we type code. (a) True (b) False
  29. 29.📋 How many items does this list show?
    <ol>
      <li>Papaya</li>
      <li>Grapes</li>
      <li>Mango</li>
      <li>Litchi</li>
      <li>Guava</li>
      <li>Orange</li>
    </ol>
  30. 30.📄 Where does the text of <title> appear? (a) at the bottom (b) nowhere (c) in a big heading (d) on the browser tab
  31. 31.Which of these is a closing tag? (a) <body> (b) <p> (c) </h1> (d) <h1>
  32. 32.💬 Which text will NOT show on the page?
    <!-- <p>Our school trip</p> -->
    <p>Good morning!</p>
    <p>My best friend</p>
    (a) Our school trip (b) Good morning! (c) My best friend
  33. 33.Which of these is true of a web browser? (a) hosts websites online (b) stores a website’s files (c) colours code to help us (d) turns HTML into a page
  34. 34.🔠 Which tag is used for the main title on a page? (a) <p> (b) <br> (c) <h6> (d) <h1>
  35. 35.📋 How many items does this list show?
    <ol>
      <li>Litchi</li>
      <li>Papaya</li>
      <li>Grapes</li>
      <li>Orange</li>
    </ol>
  36. 36.🏷️ Is <li> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
  37. 37.💾 A web page file usually ends with which extension? (a) .mp3 (b) .png (c) .txt (d) .html
  38. 38.🖼️ Does <img> need a closing tag? (a) No (b) Yes
  39. 39.🔗 Where does this link open?
    <a href="art.html" target="_blank">Art corner</a>
    (a) in a new tab (b) in the same tab
  40. 40.💬 Does the browser show comments on the page? (a) No (b) Yes

Answer key

  1. <h1>
  2. <ol>
  3. in a new tab
  4. </strong>
  5. False
  6. a web server
  7. <h2>
  8. text with links
  9. in a new tab
  10. 3
  11. School news
  12. to describe the image
  13. Visit the site
  14. HyperText
  15. https://example.com
  16. <h6>
  17. False
  18. My Hobbies
  19. <li>
  20. <h6>
  21. False
  22. numbers
  23. Map of India
  24. a web browser
  25. <h2>
  26. kite.png
  27. Yes
  28. True
  29. 6
  30. on the browser tab
  31. </h1>
  32. Our school trip
  33. turns HTML into a page
  34. <h1>
  35. 4
  36. an opening tag
  37. .html
  38. No
  39. in a new tab
  40. No

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