← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 660 · 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.📄 Can HTML on its own keep a high score? (a) No (b) Yes
  2. 2.🌐 Which one turns HTML into a page? (a) a web browser (b) a code editor (c) a web server
  3. 3.💬 Does the browser show comments on the page? (a) Yes (b) No
  4. 4.📋 Does this list show bullets or numbers?
    <ul>
      <li>Grapes</li>
      <li>Banana</li>
      <li>Orange</li>
    </ul>
    (a) numbers (b) bullets
  5. 5.📄 Which part holds everything you see on the page? (a) the doctype (b) the title (c) the head (d) the body
  6. 6.🔠 Which heading shows the BIGGEST text: <h2>, <h5>, <h6> or <h1>? (a) <h2> (b) <h5> (c) <h1> (d) <h6>
  7. 7.📋 Does this list show bullets or numbers?
    <ul>
      <li>Orange</li>
      <li>Jamun</li>
    </ul>
    (a) numbers (b) bullets
  8. 8.🏷️ Which is the closing tag for <small>? (a) </small> (b) <small> (c) <\small> (d) <small/>
  9. 9.📝 On how many lines does the browser show this paragraph?
    <p>Roses are red<br>Birds sing<br>Stars shine<br>Rivers flow</p>
  10. 10.📋 Which list shows the steps of a recipe best? (a) <ul> (b) <ol> (c) <hr> (d) <br>
  11. 11.🖼️ How many pixels wide is the picture drawn?
    <img src="tiger.jpg" alt="A tiger asleep" width="350">
  12. 12.🔍 One closing tag is missing. Which one?
    <h2>Hello, world!
    <u>I love mangoes.</u>
    <h1>Cricket is fun.</h1>
    (a) </u> (b) </h1> (c) </b> (d) </h2>
  13. 13.📝 How many paragraphs does this code make?
    <p>Good morning!</p>
    <p>Cricket is fun.</p>
    <h2>My pets</h2>
  14. 14.📝 What does <hr> draw? (a) a table (b) a picture (c) a line across the page (d) a link
  15. 15.🔠 How many <h1> headings should a page usually have? (a) 10 (b) 3 (c) 6 (d) 1
  16. 16.💬 How many paragraphs show on the page?
    <p>Fun facts</p>
    <p>My best friend</p>
    <p>Good morning!</p>
    <p>My pets</p>
    <!-- <p>I love mangoes.</p> -->
  17. 17.🔠 How many headings are in this code?
    <h1>Good morning!</h1>
    <h3>My best friend</h3>
    <p>My pets</p>
    <h2>Fun facts</h2>
  18. 18.🏷️ Is </p> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
  19. 19.🖼️ Which attribute of <img> is read by screen readers? (a) src (b) width (c) height (d) alt
  20. 20.🖼️ Why do we add alt text to an image? (a) to make it bigger (b) to load it faster (c) to colour it (d) to describe the image
  21. 21.📝 On how many lines does the browser show this paragraph?
    <p>Birds sing<br>Stars shine<br>Kites fly high<br>Rivers flow</p>
  22. 22.True or false: in <img>, src names the picture file. (a) False (b) True
  23. 23.🌐 Which one saves our .html files? (a) a web browser (b) a web server (c) a code editor
  24. 24.📋 How many items does this list show?
    <ol>
      <li>Mango</li>
      <li>Banana</li>
      <li>Jamun</li>
    </ol>
  25. 25.Which of these goes in the body? (a) <style> (b) <h1> (c) <meta charset="utf-8"> (d) <title>
  26. 26.True or false: <title> is an empty tag. (a) False (b) True
  27. 27.True or false: <li> is one item of a list. (a) True (b) False
  28. 28.🖼️ Which picture file does the browser load?
    <img src="moon.png" alt="The full moon" width="150">
    (a) bus.jpg (b) moon.png (c) fort.jpg (d) The full moon
  29. 29.🏷️ What does a closing tag have that an opening tag does not? (a) a dot . (b) a slash / (c) a hash # (d) a dollar $
  30. 30.🖼️ How many pixels wide is the picture drawn?
    <img src="bus.jpg" alt="Our school bus" width="50">
  31. 31.🔗 Which words do you click on?
    <a href="maths.html">About us</a>
    (a) Contact us (b) About us (c) maths.html (d) href
  32. 32.📝 On how many lines does the browser show this paragraph?
    <p>Kites fly high<br>Rivers flow</p>
  33. 33.📄 What is the first line of an HTML5 page? (a) <html> (b) <head> (c) <body> (d) <!DOCTYPE html>
  34. 34.📋 Which list tag shows bullet points? (a) <ul> (b) <ol> (c) <li>
  35. 35.Which of these goes in the head? (a) <img> (b) <h1> (c) <ul> (d) <title>
  36. 36.🔢 In a basic web page file, which comes first: “</body>” or “<head>”? (a) </body> (b) <head>
  37. 37.🔍 Which line is missing its closing tag?
    line 1: <i>Hello, world!
    line 2: <em>My best friend</em>
    line 3: <p>My pets</p>
    (a) line 3 (b) line 1 (c) line 2
  38. 38.Which of these is an empty tag? (a) <h1> (b) <br> (c) <p> (d) <li>
  39. 39.🔠 Which heading shows the SMALLEST text: <h3>, <h6>, <h1> or <h5>? (a) <h5> (b) <h6> (c) <h1> (d) <h3>
  40. 40.🔠 Which heading shows the BIGGEST text: <h5>, <h3>, <h6> or <h2>? (a) <h3> (b) <h2> (c) <h5> (d) <h6>

Answer key

  1. No
  2. a web browser
  3. No
  4. bullets
  5. the body
  6. <h1>
  7. bullets
  8. </small>
  9. 4
  10. <ol>
  11. 350
  12. </h2>
  13. 2
  14. a line across the page
  15. 1
  16. 4
  17. 3
  18. a closing tag
  19. alt
  20. to describe the image
  21. 4
  22. True
  23. a code editor
  24. 3
  25. <h1>
  26. False
  27. True
  28. moon.png
  29. a slash /
  30. 50
  31. About us
  32. 2
  33. <!DOCTYPE html>
  34. <ul>
  35. <title>
  36. <head>
  37. line 1
  38. <br>
  39. <h6>
  40. <h2>

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