← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 989 · 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 tag is used for the main title on a page? (a) <br> (b) <p> (c) <h6> (d) <h1>
  2. 2.🔍 Which is the odd one out? (a) colours code to help us (b) shows line numbers (c) answers page requests (d) is where we type code
  3. 3.🔠 How many headings are in this code?
    <h1>Cricket is fun.</h1>
    <p>My best friend</p>
    <p>Our school trip</p>
  4. 4.🖼️ How many pixels wide is the picture drawn?
    <img src="fort.jpg" alt="An old fort" width="100">
  5. 5.🌐 Which one colours code to help us? (a) a web browser (b) a code editor (c) a web server
  6. 6.📋 Which list suits a shopping list in any order? (a) <br> (b) <ol> (c) <hr> (d) <ul>
  7. 7.💬 How many paragraphs show on the page?
    <p>My pets</p>
    <p>Good morning!</p>
    <!-- <p>Fun facts</p> -->
  8. 8.🖼️ The picture cannot load. Which text does the browser show instead?
    <img src="moon.png" alt="The full moon" width="50">
    (a) width (b) Our school bus (c) The full moon (d) moon.png
  9. 9.🧱 HTML gives a web page its ___. (a) speed (b) sound (c) structure (d) colours
  10. 10.📋 What number does the browser show next to “Papaya”?
    <ol>
      <li>Mango</li>
      <li>Banana</li>
      <li>Papaya</li>
    </ol>
  11. 11.📋 Which list tag lists things in any order? (a) <ul> (b) <li> (c) <ol>
  12. 12.🔗 Where does this link open?
    <a href="news.html">About us</a>
    (a) in the same tab (b) in a new tab
  13. 13.True or false: <li> goes inside ul or ol. (a) True (b) False
  14. 14.🔠 Which tag is the least important heading? (a) <h1> (b) <h3> (c) <h6> (d) <p>
  15. 15.True or false: <ul> shows bullet points. (a) True (b) False
  16. 16.📄 Where does <link rel="stylesheet"> go: in the head or in the body? (a) in the head (b) in the body
  17. 17.📋 Which list shows the steps of a recipe best? (a) <ul> (b) <hr> (c) <ol> (d) <br>
  18. 18.📋 How many items does this list show?
    <ol>
      <li>Guava</li>
      <li>Grapes</li>
      <li>Litchi</li>
      <li>Banana</li>
    </ol>
  19. 19.🔠 Which heading shows the BIGGEST text: <h4>, <h3>, <h2> or <h1>? (a) <h3> (b) <h4> (c) <h2> (d) <h1>
  20. 20.🏷️ Is <li> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
  21. 21.🌍 Which program shows a web page to us? (a) a calculator (b) a music player (c) a paint program (d) a web browser
  22. 22.Which of these goes in the body? (a) <title> (b) <meta charset="utf-8"> (c) <style> (d) <table>
  23. 23.True or false: <ul> goes in the body. (a) False (b) True
  24. 24.🔍 Which line is missing its closing tag?
    line 1: <h2>I love mangoes.</h2>
    line 2: <p>Our school trip</p>
    line 3: <strong>Rain today
    (a) line 1 (b) line 2 (c) line 3
  25. 25.💬 How many paragraphs show on the page?
    <!-- <p>The red kite</p> -->
    <p>Good morning!</p>
    <p>Our school trip</p>
    <p>Rain today</p>
    <p>Cricket is fun.</p>
  26. 26.🖼️ Which picture file does the browser load?
    <img src="dog.jpg" alt="A happy dog" width="100">
    (a) bus.jpg (b) dog.jpg (c) A happy dog (d) moon.png
  27. 27.🏷️ Every HTML tag starts with which sign? (a) [ (b) < (c) ( (d) {
  28. 28.Which of these is true of a web server? (a) opens web pages for us (b) shows line numbers (c) has an address bar (d) stores a website’s files
  29. 29.🔠 Which heading shows the BIGGEST text: <h3>, <h1>, <h5> or <h4>? (a) <h1> (b) <h3> (c) <h5> (d) <h4>
  30. 30.True or false: in <img>, alt tells which image to load. (a) False (b) True
  31. 31.True or false: <input> has a closing tag. (a) False (b) True
  32. 32.📋 How many items does this list show?
    <ul>
      <li>Guava</li>
      <li>Mango</li>
      <li>Litchi</li>
      <li>Papaya</li>
    </ul>
  33. 33.🔍 Which is the odd one out? (a) hosts websites online (b) stores a website’s files (c) sends pages over the net (d) is where we type code
  34. 34.🖼️ How many pixels wide is the picture drawn?
    <img src="tiger.jpg" alt="A tiger asleep" width="100">
  35. 35.📝 On how many lines does the browser show this paragraph?
    <p>Kites fly high<br>Roses are red<br>Sky is blue<br>Rivers flow</p>
  36. 36.🔍 Which is the odd one out? (a) colours code to help us (b) has an address bar (c) turns HTML into a page (d) shows pages from the web
  37. 37.🔗 Where does this link open?
    <a href="news.html" target="_blank">Art corner</a>
    (a) in the same tab (b) in a new tab
  38. 38.Which of these is an opening tag? (a) </li> (b) <b> (c) </p> (d) </title>
  39. 39.📄 What does the browser tab show for this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>Cricket Club</title>
    </head>
    <body>
      <h1>Planets</h1>
      <p>I like to read.</p>
    </body>
    </html>
    (a) I like to read. (b) index.html (c) Cricket Club (d) Planets
  40. 40.📝 On how many lines does the browser show this paragraph?
    <p>Sky is blue<br>Kites fly high<br>Roses are red<br>Rivers flow<br>Stars shine</p>

Answer key

  1. <h1>
  2. answers page requests
  3. 1
  4. 100
  5. a code editor
  6. <ul>
  7. 2
  8. The full moon
  9. structure
  10. 3
  11. <ul>
  12. in the same tab
  13. True
  14. <h6>
  15. True
  16. in the head
  17. <ol>
  18. 4
  19. <h1>
  20. an opening tag
  21. a web browser
  22. <table>
  23. True
  24. line 3
  25. 4
  26. dog.jpg
  27. <
  28. stores a website’s files
  29. <h1>
  30. False
  31. False
  32. 4
  33. is where we type code
  34. 100
  35. 4
  36. colours code to help us
  37. in a new tab
  38. <b>
  39. Cricket Club
  40. 5

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