← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 451 · 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.📋 How many items does this list show?
    <ol>
      <li>Banana</li>
      <li>Guava</li>
      <li>Mango</li>
      <li>Orange</li>
      <li>Litchi</li>
    </ol>
  2. 2.🔠 Which heading shows the SMALLEST text: <h1>, <h2>, <h4> or <h3>? (a) <h1> (b) <h4> (c) <h2> (d) <h3>
  3. 3.🖼️ Which tag puts a picture on a page? (a) <p> (b) <img> (c) <a> (d) <pic>
  4. 4.True or false: <ol> lists things in any order. (a) True (b) False
  5. 5.📝 On how many lines does the browser show this paragraph?
    <p>Birds sing<br>Sky is blue</p>
  6. 6.📋 Which list suits a shopping list in any order? (a) <ol> (b) <hr> (c) <br> (d) <ul>
  7. 7.🏷️ Is <p> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
  8. 8.Which of these is a closing tag? (a) <b> (b) </h1> (c) <p> (d) <h1>
  9. 9.True or false: in <img>, width sets how wide it is. (a) False (b) True
  10. 10.True or false: a web browser turns HTML into a page. (a) True (b) False
  11. 11.🔗 Which words do you click on?
    <a href="contact.html">Take the quiz</a>
    (a) contact.html (b) Play games (c) Take the quiz (d) href
  12. 12.💬 Why do coders write comments? (a) to show pictures (b) to make links (c) to add colour (d) to leave notes
  13. 13.🏷️ Which is the closing tag for <b>? (a) <\b> (b) <b> (c) <b/> (d) </b>
  14. 14.🔠 Which tag is used for the main title on a page? (a) <br> (b) <h6> (c) <p> (d) <h1>
  15. 15.📋 Which list tag lists steps in order? (a) <li> (b) <ol> (c) <ul>
  16. 16.💬 How many paragraphs show on the page?
    <!-- <p>My pets</p> -->
    <p>Fun facts</p>
    <!-- <p>Our school trip</p> -->
    <p>Hello, world!</p>
    <p>I love mangoes.</p>
  17. 17.🔠 Which heading shows the BIGGEST text: <h1>, <h4>, <h3> or <h6>? (a) <h1> (b) <h6> (c) <h4> (d) <h3>
  18. 18.True or false: HTML on its own cannot make bullet lists. (a) False (b) True
  19. 19.🔡 Are HTML tag names usually written in small letters? (a) Yes (b) No
  20. 20.📋 What number does the browser show next to “Jamun”?
    <ol>
      <li>Guava</li>
      <li>Jamun</li>
      <li>Litchi</li>
      <li>Mango</li>
    </ol>
  21. 21.🔠 How many headings are in this code?
    <h1>The red kite</h1>
    <h2>I love mangoes.</h2>
    <p>My pets</p>
  22. 22.📝 On how many lines does the browser show this paragraph?
    <p>Birds sing<br>Rivers flow</p>
  23. 23.📝 On how many lines does the browser show this paragraph?
    <p>Roses are red<br>Stars shine<br>Kites fly high<br>Birds sing<br>Sky is blue</p>
  24. 24.True or false: a code editor stores a website’s files. (a) True (b) False
  25. 25.🏷️ Is </p> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
  26. 26.🌐 Which one is where we type code? (a) a web browser (b) a code editor (c) a web server
  27. 27.Which of these is an empty tag? (a) <p> (b) <meta> (c) <b> (d) <h1>
  28. 28.Which of these is an opening tag? (a) <b> (b) </p> (c) </title> (d) </h1>
  29. 29.🔠 How many headings are in this code?
    <h1>My best friend</h1>
    <h2>Hello, world!</h2>
    <p>Rain today</p>
    <h2>Our school trip</h2>
  30. 30.🔗 Which attribute holds the address of a link? (a) alt (b) id (c) src (d) href
  31. 31.True or false: <li> is an empty tag. (a) True (b) False
  32. 32.🖼️ The picture cannot load. Which text does the browser show instead?
    <img src="tiger.jpg" alt="A tiger asleep" width="100">
    (a) tiger.jpg (b) A red kite (c) A tiger asleep (d) width
  33. 33.🔍 One closing tag is missing. Which one?
    <h3>Rain today</h3>
    <h1>Cricket is fun.</h1>
    <strong>I love mangoes.
    (a) </h3> (b) </h1> (c) </i> (d) </strong>
  34. 34.True or false: <title> goes in the head. (a) True (b) False
  35. 35.🔗 Where does this link open?
    <a href="maths.html" target="_blank">Play games</a>
    (a) in the same tab (b) in a new tab
  36. 36.📋 How many items does this list show?
    <ol>
      <li>Litchi</li>
      <li>Banana</li>
      <li>Orange</li>
      <li>Grapes</li>
      <li>Papaya</li>
      <li>Mango</li>
    </ol>
  37. 37.🔠 Which heading shows the SMALLEST text: <h2>, <h6>, <h1> or <h5>? (a) <h5> (b) <h1> (c) <h2> (d) <h6>
  38. 38.🔠 Which heading shows the BIGGEST text: <h1>, <h4>, <h5> or <h2>? (a) <h5> (b) <h4> (c) <h1> (d) <h2>
  39. 39.Which of these goes in the head? (a) <p> (b) <title> (c) <table> (d) <ul>
  40. 40.🌐 Which one stores a website’s files? (a) a code editor (b) a web browser (c) a web server

Answer key

  1. 5
  2. <h4>
  3. <img>
  4. False
  5. 2
  6. <ul>
  7. an opening tag
  8. </h1>
  9. True
  10. True
  11. Take the quiz
  12. to leave notes
  13. </b>
  14. <h1>
  15. <ol>
  16. 3
  17. <h1>
  18. False
  19. Yes
  20. 2
  21. 2
  22. 2
  23. 5
  24. False
  25. a closing tag
  26. a code editor
  27. <meta>
  28. <b>
  29. 3
  30. href
  31. False
  32. A tiger asleep
  33. </strong>
  34. True
  35. in a new tab
  36. 6
  37. <h6>
  38. <h1>
  39. <title>
  40. a web server

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