← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 708 · 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 makes a clickable link? (a) <p> (b) <a> (c) <link> (d) <img>
  2. 2.True or false: a code editor shows line numbers. (a) True (b) False
  3. 3.📋 How many items does this list show?
    <ol>
      <li>Guava</li>
      <li>Mango</li>
      <li>Jamun</li>
    </ol>
  4. 4.📝 On how many lines does the browser show this paragraph?
    <p>Kites fly high<br>Stars shine</p>
  5. 5.🔠 How many headings are in this code?
    <h1>Hello, world!</h1>
    <p>My pets</p>
    <h3>Hello, world!</h3>
    <h4>Good morning!</h4>
  6. 6.🏷️ What does a closing tag have that an opening tag does not? (a) a dot . (b) a hash # (c) a slash / (d) a dollar $
  7. 7.🖼️ Which tag puts a picture on a page? (a) <img> (b) <pic> (c) <a> (d) <p>
  8. 8.💬 How many paragraphs show on the page?
    <!-- <p>Fun facts</p> -->
    <!-- <p>Our school trip</p> -->
    <p>My pets</p>
  9. 9.💬 How many paragraphs show on the page?
    <!-- <p>Good morning!</p> -->
    <p>Hello, world!</p>
    <!-- <p>My best friend</p> -->
    <!-- <p>Rain today</p> -->
    <!-- <p>My pets</p> -->
  10. 10.📋 Which tag goes around each item of a list? (a) <p> (b) <ol> (c) <ul> (d) <li>
  11. 11.📋 How many items does this list show?
    <ul>
      <li>Litchi</li>
      <li>Mango</li>
      <li>Jamun</li>
    </ul>
  12. 12.📋 How many items does this list show?
    <ul>
      <li>Jamun</li>
      <li>Litchi</li>
      <li>Papaya</li>
      <li>Banana</li>
    </ul>
  13. 13.📝 On how many lines does the browser show this paragraph?
    <p>Sky is blue<br>Birds sing<br>Rivers flow<br>Kites fly high</p>
  14. 14.🖼️ The picture cannot load. Which text does the browser show instead?
    <img src="tiger.jpg" alt="A tiger asleep" width="100">
    (a) A red kite (b) width (c) A tiger asleep (d) tiger.jpg
  15. 15.📋 Which list shows the steps of a recipe best? (a) <ul> (b) <ol> (c) <hr> (d) <br>
  16. 16.📝 How many paragraphs does this code make?
    <p>My pets</p>
    <p>Our school trip</p>
    <p>Cricket is fun.</p>
  17. 17.🔠 How many headings are in this code?
    <h1>My pets</h1>
    <p>Hello, world!</p>
    <p>Fun facts</p>
    <h4>Good morning!</h4>
    <p>Our school trip</p>
  18. 18.🔗 Which words do you click on?
    <a href="games.html">About us</a>
    (a) Contact us (b) About us (c) href (d) games.html
  19. 19.🔍 One closing tag is missing. Which one?
    <em>My pets
    <p>Our school trip</p>
    <h1>The red kite</h1>
    (a) </strong> (b) </em> (c) </h1> (d) </p>
  20. 20.📄 Where does <link rel="stylesheet"> go: in the head or in the body? (a) in the head (b) in the body
  21. 21.📋 Which list tag is an ordered list? (a) <ul> (b) <ol> (c) <li>
  22. 22.🔍 Which line is missing its closing tag?
    line 1: <em>My best friend</em>
    line 2: <strong>Our school trip
    line 3: <i>Cricket is fun.</i>
    (a) line 3 (b) line 2 (c) line 1
  23. 23.🏷️ Is <b> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
  24. 24.True or false: <li> lists steps in order. (a) True (b) False
  25. 25.🔠 How many headings are in this code?
    <h1>Good morning!</h1>
    <h3>Rain today</h3>
    <p>Hello, world!</p>
    <p>Hello, world!</p>
    <p>Fun facts</p>
  26. 26.📋 Which list tag is one item of a list? (a) <ol> (b) <li> (c) <ul>
  27. 27.📋 What number does the browser show next to “Litchi”?
    <ol>
      <li>Jamun</li>
      <li>Banana</li>
      <li>Litchi</li>
    </ol>
  28. 28.True or false: HTML on its own can show paragraphs. (a) False (b) True
  29. 29.🖼️ Which attribute of <img> is read by screen readers? (a) height (b) width (c) src (d) alt
  30. 30.🔠 Which heading shows the BIGGEST text: <h2>, <h1>, <h3> or <h5>? (a) <h2> (b) <h5> (c) <h1> (d) <h3>
  31. 31.💬 How many paragraphs show on the page?
    <p>Our school trip</p>
    <!-- <p>My pets</p> -->
    <!-- <p>Fun facts</p> -->
    <p>The red kite</p>
    <p>Rain today</p>
  32. 32.📋 Which list suits a shopping list in any order? (a) <br> (b) <ol> (c) <hr> (d) <ul>
  33. 33.🔠 Which heading shows the BIGGEST text: <h2>, <h3>, <h4> or <h6>? (a) <h3> (b) <h4> (c) <h6> (d) <h2>
  34. 34.True or false: <ol> lists steps in order. (a) True (b) False
  35. 35.📝 On how many lines does the browser show this paragraph?
    <p>Rivers flow<br>Sky is blue<br>Stars shine<br>Kites fly high</p>
  36. 36.🌐 Which one turns HTML into a page? (a) a web browser (b) a web server (c) a code editor
  37. 37.True or false: <img> goes in the body. (a) True (b) False
  38. 38.🔍 One closing tag is missing. Which one?
    <em>Cricket is fun.</em>
    <i>I love mangoes.</i>
    <h2>Our school trip
    (a) </em> (b) </h2> (c) </i> (d) </small>
  39. 39.🌐 Which one is where we type code? (a) a web server (b) a web browser (c) a code editor
  40. 40.🔗 Which words do you click on?
    <a href="maths.html">Visit the site</a>
    (a) Maths fun (b) href (c) Visit the site (d) maths.html

Answer key

  1. <a>
  2. True
  3. 3
  4. 2
  5. 3
  6. a slash /
  7. <img>
  8. 1
  9. 1
  10. <li>
  11. 3
  12. 4
  13. 4
  14. A tiger asleep
  15. <ol>
  16. 3
  17. 2
  18. About us
  19. </em>
  20. in the head
  21. <ol>
  22. line 2
  23. an opening tag
  24. False
  25. 2
  26. <li>
  27. 3
  28. True
  29. alt
  30. <h1>
  31. 3
  32. <ul>
  33. <h2>
  34. True
  35. 4
  36. a web browser
  37. True
  38. </h2>
  39. a code editor
  40. Visit the site

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