← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 352 · 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: <h6>, <h2>, <h1> or <h3>? (a) <h1> (b) <h2> (c) <h3> (d) <h6>
  2. 2.📋 Which list tag shows 1, 2, 3 numbers? (a) <ul> (b) <li> (c) <ol>
  3. 3.📄 Can HTML on its own make bullet lists? (a) Yes (b) No
  4. 4.🔗 Which words do you click on?
    <a href="about.html">Play games</a>
    (a) href (b) about.html (c) Play games (d) About us
  5. 5.🔠 Which tag is used for the main title on a page? (a) <h6> (b) <p> (c) <br> (d) <h1>
  6. 6.🔍 Which is the odd one out? (a) has an address bar (b) opens web pages for us (c) turns HTML into a page (d) colours code to help us
  7. 7.📝 How many paragraphs does this code make?
    <p>My best friend</p>
    <h2>Hello, world!</h2>
    <p>Rain today</p>
  8. 8.🏷️ What does a closing tag have that an opening tag does not? (a) a slash / (b) a hash # (c) a dot . (d) a dollar $
  9. 9.True or false: a web server shows pages from the web. (a) False (b) True
  10. 10.📋 How many items does this list show?
    <ol>
      <li>Mango</li>
      <li>Litchi</li>
    </ol>
  11. 11.🔠 Which heading shows the BIGGEST text: <h5>, <h6>, <h1> or <h4>? (a) <h4> (b) <h6> (c) <h1> (d) <h5>
  12. 12.🖼️ Which attribute of <img> shows if the image fails? (a) alt (b) src (c) width (d) height
  13. 13.🖼️ Which attribute of <img> sets how wide it is? (a) width (b) alt (c) height (d) src
  14. 14.🏷️ Is </h1> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
  15. 15.🖼️ The picture cannot load. Which text does the browser show instead?
    <img src="fort.jpg" alt="An old fort" width="50">
    (a) A tiger asleep (b) fort.jpg (c) width (d) An old fort
  16. 16.True or false: <h1> goes in the head. (a) False (b) True
  17. 17.🔗 Which words do you click on?
    <a href="games.html">Take the quiz</a>
    (a) Take the quiz (b) href (c) games.html (d) Play games
  18. 18.🖼️ How many pixels wide is the picture drawn?
    <img src="kite.png" alt="A red kite" width="350">
  19. 19.📋 How many items does this list show?
    <ol>
      <li>Litchi</li>
      <li>Jamun</li>
      <li>Mango</li>
      <li>Orange</li>
      <li>Grapes</li>
    </ol>
  20. 20.True or false: <ul> shows 1, 2, 3 numbers. (a) True (b) False
  21. 21.📄 What is the first line of an HTML5 page? (a) <!DOCTYPE html> (b) <html> (c) <body> (d) <head>
  22. 22.🔗 Which address opens when you click this link?
    <a href="games.html">Play games</a>
    (a) about.html (b) games.html (c) Play games (d) contact.html
  23. 23.💬 How does an HTML comment end? (a) --> (b) // (c) >> (d) */
  24. 24.📋 Which list shows the steps of a recipe best? (a) <ul> (b) <br> (c) <hr> (d) <ol>
  25. 25.📄 What is the big heading shown on this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>Space Facts</title>
    </head>
    <body>
      <h1>All about me</h1>
      <p>We won by 5 runs.</p>
    </body>
    </html>
    (a) We won by 5 runs. (b) Space Facts (c) body (d) All about me
  26. 26.🔠 Which heading shows the BIGGEST text: <h5>, <h4>, <h1> or <h6>? (a) <h4> (b) <h6> (c) <h1> (d) <h5>
  27. 27.📋 Does this list show bullets or numbers?
    <ol>
      <li>Orange</li>
      <li>Papaya</li>
      <li>Grapes</li>
    </ol>
    (a) bullets (b) numbers
  28. 28.🔠 Which heading shows the SMALLEST text: <h4>, <h6>, <h2> or <h1>? (a) <h2> (b) <h4> (c) <h6> (d) <h1>
  29. 29.📋 Which list suits a shopping list in any order? (a) <br> (b) <ol> (c) <hr> (d) <ul>
  30. 30.🏷️ HTML marks up text using ___. (a) tags (b) wires (c) keys (d) pixels
  31. 31.📝 On how many lines does the browser show this paragraph?
    <p>Birds sing<br>Sky is blue<br>Roses are red<br>Kites fly high</p>
  32. 32.🔗 Which address opens when you click this link?
    <a href="about.html">Visit the site</a>
    (a) about.html (b) https://example.com (c) contact.html (d) Visit the site
  33. 33.🌐 Which one hosts websites online? (a) a web browser (b) a web server (c) a code editor
  34. 34.🔠 Which heading shows the SMALLEST text: <h3>, <h5>, <h4> or <h1>? (a) <h3> (b) <h1> (c) <h4> (d) <h5>
  35. 35.🖼️ Why do we add alt text to an image? (a) to colour it (b) to load it faster (c) to make it bigger (d) to describe the image
  36. 36.🌐 Which one stores a website’s files? (a) a web server (b) a web browser (c) a code editor
  37. 37.🔡 Are HTML tag names usually written in small letters? (a) No (b) Yes
  38. 38.🖼️ Which picture file does the browser load?
    <img src="tiger.jpg" alt="A tiger asleep" width="400">
    (a) A tiger asleep (b) kite.png (c) tiger.jpg (d) map.png
  39. 39.True or false: <li> shows bullet points. (a) False (b) True
  40. 40.True or false: <link rel="stylesheet"> goes in the body. (a) True (b) False

Answer key

  1. <h6>
  2. <ol>
  3. Yes
  4. Play games
  5. <h1>
  6. colours code to help us
  7. 2
  8. a slash /
  9. False
  10. 2
  11. <h1>
  12. alt
  13. width
  14. a closing tag
  15. An old fort
  16. False
  17. Take the quiz
  18. 350
  19. 5
  20. False
  21. <!DOCTYPE html>
  22. games.html
  23. -->
  24. <ol>
  25. All about me
  26. <h1>
  27. numbers
  28. <h6>
  29. <ul>
  30. tags
  31. 4
  32. about.html
  33. a web server
  34. <h5>
  35. to describe the image
  36. a web server
  37. Yes
  38. tiger.jpg
  39. False
  40. False

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