← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 11 · 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 of these is true of a web server? (a) shows pages from the web (b) has an address bar (c) opens web pages for us (d) hosts websites online
  2. 2.🏷️ Is </p> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
  3. 3.📋 How many items does this list show?
    <ol>
      <li>Litchi</li>
      <li>Banana</li>
      <li>Papaya</li>
    </ol>
  4. 4.🔗 Which words do you click on?
    <a href="about.html">Play games</a>
    (a) Play games (b) About us (c) about.html (d) href
  5. 5.📋 Which list tag shows 1, 2, 3 numbers? (a) <li> (b) <ol> (c) <ul>
  6. 6.🏷️ Which is the closing tag for <u>? (a) <u> (b) <\u> (c) </u> (d) <u/>
  7. 7.📋 Which list tag goes inside ul or ol? (a) <li> (b) <ul> (c) <ol>
  8. 8.True or false: <p> is an empty tag. (a) True (b) False
  9. 9.🔠 Which heading shows the BIGGEST text: <h4>, <h1>, <h5> or <h2>? (a) <h1> (b) <h4> (c) <h2> (d) <h5>
  10. 10.🖼️ Which tag puts a picture on a page? (a) <p> (b) <a> (c) <pic> (d) <img>
  11. 11.🔠 How many headings are in this code?
    <h1>The red kite</h1>
    <p>Good morning!</p>
    <h2>Good morning!</h2>
    <p>Rain today</p>
  12. 12.True or false: <ol> lists steps in order. (a) True (b) False
  13. 13.Which of these goes in the body? (a) <meta charset="utf-8"> (b) <a> (c) <style> (d) <title>
  14. 14.🖼️ Does <img> need a closing tag? (a) No (b) Yes
  15. 15.🧩 An opening tag + content + a closing tag together make an ___. (a) editor (b) attribute (c) address (d) element
  16. 16.True or false: HTML on its own can pick a random number. (a) True (b) False
  17. 17.📋 Which list shows the steps of a recipe best? (a) <ul> (b) <ol> (c) <hr> (d) <br>
  18. 18.🏷️ Which is the closing tag for <h1>? (a) </h1> (b) <h1/> (c) <\h1> (d) <h1>
  19. 19.🖼️ Why do we add alt text to an image? (a) to colour it (b) to load it faster (c) to describe the image (d) to make it bigger
  20. 20.🌍 Which program shows a web page to us? (a) a paint program (b) a music player (c) a calculator (d) a web browser
  21. 21.🖼️ Which picture file does the browser load?
    <img src="cake.jpg" alt="Birthday cake" width="350">
    (a) Birthday cake (b) moon.png (c) dog.jpg (d) cake.jpg
  22. 22.📋 Which list suits a shopping list in any order? (a) <br> (b) <ol> (c) <hr> (d) <ul>
  23. 23.💬 Which text will NOT show on the page?
    <!-- <p>Our school trip</p> -->
    <p>Cricket is fun.</p>
    <p>Fun facts</p>
    (a) Cricket is fun. (b) Our school trip (c) Fun facts
  24. 24.🏷️ Is </body> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
  25. 25.🧱 HTML gives a web page its ___. (a) speed (b) colours (c) structure (d) sound
  26. 26.📝 On how many lines does the browser show this paragraph?
    <p>Kites fly high<br>Roses are red</p>
  27. 27.🔗 Which words do you click on?
    <a href="about.html">Art corner</a>
    (a) Art corner (b) href (c) School news (d) about.html
  28. 28.True or false: a web server opens web pages for us. (a) True (b) False
  29. 29.💬 How many paragraphs show on the page?
    <p>Hello, world!</p>
    <p>My best friend</p>
    <p>Fun facts</p>
    <!-- <p>Good morning!</p> -->
  30. 30.True or false: in <img>, src names the picture file. (a) False (b) True
  31. 31.True or false: <b> is an empty tag. (a) True (b) False
  32. 32.Which of these is an opening tag? (a) </b> (b) <h1> (c) </body> (d) </p>
  33. 33.Which of these is true of a code editor? (a) stores a website’s files (b) answers page requests (c) is where we type code (d) sends pages over the net
  34. 34.📋 Which list tag is an unordered list? (a) <ol> (b) <li> (c) <ul>
  35. 35.🏷️ Is <title> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
  36. 36.🔍 Which is the odd one out? (a) shows line numbers (b) colours code to help us (c) has an address bar (d) saves our .html files
  37. 37.🔢 In a basic web page file, which comes FIRST? (a) </head> (b) <!DOCTYPE html> (c) <head> (d) <html>
  38. 38.📄 What is the big heading shown on this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>My Hobbies</title>
    </head>
    <body>
      <h1>Welcome!</h1>
      <p>Mars is red.</p>
    </body>
    </html>
    (a) Welcome! (b) body (c) Mars is red. (d) My Hobbies
  39. 39.Which of these is an empty tag? (a) <br> (b) <li> (c) <p> (d) <h1>
  40. 40.🔠 Which heading shows the BIGGEST text: <h3>, <h4>, <h5> or <h2>? (a) <h3> (b) <h4> (c) <h5> (d) <h2>

Answer key

  1. hosts websites online
  2. a closing tag
  3. 3
  4. Play games
  5. <ol>
  6. </u>
  7. <li>
  8. False
  9. <h1>
  10. <img>
  11. 2
  12. True
  13. <a>
  14. No
  15. element
  16. False
  17. <ol>
  18. </h1>
  19. to describe the image
  20. a web browser
  21. cake.jpg
  22. <ul>
  23. Our school trip
  24. a closing tag
  25. structure
  26. 2
  27. Art corner
  28. False
  29. 3
  30. True
  31. False
  32. <h1>
  33. is where we type code
  34. <ul>
  35. an opening tag
  36. has an address bar
  37. <!DOCTYPE html>
  38. Welcome!
  39. <br>
  40. <h2>

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