← Tables lesson New set →

HTML Worksheet: Tables

HTML and CSS lesson 22: Tables · Set 155 · 40 questions
TalentJR

Code tip (Rows hold cells): <table> holds rows <tr>; each row holds cells <td> (data) or <th> (heading). Rows = number of <tr>; cells in a row = <td> + <th> in it. Total cells = rows × cells per row.

NameDateTime takenScore ___ / 40
  1. 1.📊 Which tag gives the table a title? (a) <td> (b) <tr> (c) <caption> (d) <th>
  2. 2.📊 How many rows does this table have?
    <table>
      <tr><th>Name</th><th>Fruit</th><th>Price</th><th>Day</th></tr>
      <tr><td>Banana</td><td>Banana</td><td>Jamun</td><td>Papaya</td></tr>
    </table>
  3. 3.📊 How many heading cells (<th>) does this table have?
    <table>
      <tr><th>Name</th><th>Fruit</th><th>Price</th></tr>
      <tr><td>Mango</td><td>Litchi</td><td>Guava</td></tr>
    </table>
  4. 4.True or false: <tr> holds the whole table. (a) True (b) False
  5. 5.📊 How many cells does this table have in all?
    <table>
      <tr><th>Name</th><th>Fruit</th><th>Price</th></tr>
      <tr><td>Jamun</td><td>Orange</td><td>Papaya</td></tr>
    </table>
  6. 6.📊 Where do <td> cells go? (a) inside the <head> (b) inside a <li> (c) inside a <tr> (d) inside a <p>
  7. 7.📊 How many cells are in each row?
    <table>
      <tr><td>Banana</td><td>Orange</td><td>Mango</td><td>Grapes</td></tr>
      <tr><td>Banana</td><td>Mango</td><td>Grapes</td><td>Litchi</td></tr>
    </table>
  8. 8.📊 Which tag makes one data cell? (a) <td> (b) <th> (c) <tr> (d) <table>
  9. 9.True or false: <table> gives the table a title. (a) True (b) False
  10. 10.📊 How many cells does this table have in all?
    <table>
      <tr><td>Guava</td><td>Litchi</td></tr>
      <tr><td>Orange</td><td>Guava</td></tr>
      <tr><td>Banana</td><td>Mango</td></tr>
      <tr><td>Jamun</td><td>Guava</td></tr>
    </table>
  11. 11.📊 Are <th> cells shown bold and centred by default? (a) No (b) Yes
  12. 12.True or false: <tr> makes one data cell. (a) True (b) False
  13. 13.True or false: <caption> makes a heading cell. (a) True (b) False
  14. 14.True or false: <caption> gives the table a title. (a) True (b) False
  15. 15.True or false: <th> gives the table a title. (a) True (b) False
  16. 16.📊 How many rows does this table have?
    <table>
      <tr><td>Grapes</td><td>Mango</td><td>Guava</td></tr>
      <tr><td>Jamun</td><td>Litchi</td><td>Mango</td></tr>
    </table>
  17. 17.True or false: <th> makes one table row. (a) False (b) True
  18. 18.📊 Which tag makes a heading cell? (a) <caption> (b) <tr> (c) <table> (d) <th>
  19. 19.📊 How many cells are in each row?
    <table>
      <tr><td>Guava</td><td>Mango</td><td>Orange</td><td>Banana</td></tr>
      <tr><td>Litchi</td><td>Jamun</td><td>Guava</td><td>Litchi</td></tr>
      <tr><td>Guava</td><td>Jamun</td><td>Grapes</td><td>Guava</td></tr>
      <tr><td>Banana</td><td>Mango</td><td>Litchi</td><td>Litchi</td></tr>
    </table>
  20. 20.📊 How many cells are in each row?
    <table>
      <tr><th>Name</th><th>Fruit</th><th>Price</th><th>Day</th></tr>
      <tr><td>Grapes</td><td>Papaya</td><td>Jamun</td><td>Orange</td></tr>
      <tr><td>Litchi</td><td>Grapes</td><td>Jamun</td><td>Litchi</td></tr>
      <tr><td>Jamun</td><td>Papaya</td><td>Mango</td><td>Grapes</td></tr>
    </table>
  21. 21.📊 How many rows does this table have?
    <table>
      <tr><th>Name</th><th>Fruit</th><th>Price</th></tr>
      <tr><td>Guava</td><td>Orange</td><td>Guava</td></tr>
      <tr><td>Banana</td><td>Mango</td><td>Litchi</td></tr>
    </table>
  22. 22.True or false: <caption> makes one data cell. (a) True (b) False
  23. 23.📊 How many rows does this table have?
    <table>
      <tr><td>Grapes</td><td>Banana</td><td>Jamun</td></tr>
      <tr><td>Mango</td><td>Jamun</td><td>Jamun</td></tr>
    </table>
  24. 24.📊 How many cells are in each row?
    <table>
      <tr><th>Name</th><th>Fruit</th><th>Price</th><th>Day</th></tr>
      <tr><td>Banana</td><td>Banana</td><td>Jamun</td><td>Papaya</td></tr>
      <tr><td>Mango</td><td>Grapes</td><td>Litchi</td><td>Grapes</td></tr>
    </table>
  25. 25.True or false: <td> makes one data cell. (a) False (b) True
  26. 26.📊 How many heading cells (<th>) does this table have?
    <table>
      <tr><th>Name</th><th>Fruit</th><th>Price</th><th>Day</th></tr>
      <tr><td>Litchi</td><td>Mango</td><td>Litchi</td><td>Banana</td></tr>
    </table>
  27. 27.📊 How many rows does this table have?
    <table>
      <tr><th>Name</th><th>Fruit</th><th>Price</th><th>Day</th></tr>
      <tr><td>Jamun</td><td>Mango</td><td>Litchi</td><td>Papaya</td></tr>
    </table>
  28. 28.True or false: <table> holds the whole table. (a) False (b) True
  29. 29.📊 How many cells are in each row?
    <table>
      <tr><td>Mango</td><td>Mango</td><td>Guava</td><td>Banana</td></tr>
      <tr><td>Mango</td><td>Grapes</td><td>Litchi</td><td>Litchi</td></tr>
    </table>
  30. 30.📊 How many cells does this table have in all?
    <table>
      <tr><th>Name</th><th>Fruit</th></tr>
      <tr><td>Guava</td><td>Mango</td></tr>
      <tr><td>Orange</td><td>Grapes</td></tr>
    </table>
  31. 31.📊 Which tag holds the whole table? (a) <tr> (b) <caption> (c) <table> (d) <th>
  32. 32.True or false: <tr> gives the table a title. (a) False (b) True
  33. 33.📊 How many rows does this table have?
    <table>
      <tr><td>Jamun</td><td>Mango</td></tr>
      <tr><td>Banana</td><td>Banana</td></tr>
    </table>
  34. 34.📊 How many heading cells (<th>) does this table have?
    <table>
      <tr><th>Name</th><th>Fruit</th><th>Price</th><th>Day</th></tr>
      <tr><td>Grapes</td><td>Litchi</td><td>Mango</td><td>Papaya</td></tr>
      <tr><td>Orange</td><td>Orange</td><td>Grapes</td><td>Litchi</td></tr>
    </table>
  35. 35.📊 How many cells does this table have in all?
    <table>
      <tr><th>Name</th><th>Fruit</th><th>Price</th></tr>
      <tr><td>Guava</td><td>Mango</td><td>Jamun</td></tr>
      <tr><td>Jamun</td><td>Mango</td><td>Banana</td></tr>
      <tr><td>Papaya</td><td>Orange</td><td>Mango</td></tr>
    </table>
  36. 36.📊 How many cells does this table have in all?
    <table>
      <tr><th>Name</th><th>Fruit</th><th>Price</th></tr>
      <tr><td>Papaya</td><td>Orange</td><td>Orange</td></tr>
      <tr><td>Guava</td><td>Mango</td><td>Jamun</td></tr>
    </table>
  37. 37.📊 How many cells does this table have in all?
    <table>
      <tr><th>Name</th><th>Fruit</th><th>Price</th><th>Day</th></tr>
      <tr><td>Grapes</td><td>Guava</td><td>Grapes</td><td>Litchi</td></tr>
      <tr><td>Mango</td><td>Jamun</td><td>Jamun</td><td>Mango</td></tr>
    </table>
  38. 38.📊 How many cells are in each row?
    <table>
      <tr><td>Grapes</td><td>Grapes</td></tr>
      <tr><td>Banana</td><td>Litchi</td></tr>
      <tr><td>Banana</td><td>Guava</td></tr>
    </table>
  39. 39.True or false: <tr> makes one table row. (a) False (b) True
  40. 40.📊 Which tag makes one table row? (a) <tr> (b) <th> (c) <td> (d) <caption>

Answer key

  1. <caption>
  2. 2
  3. 3
  4. False
  5. 6
  6. inside a <tr>
  7. 4
  8. <td>
  9. False
  10. 8
  11. Yes
  12. False
  13. False
  14. True
  15. False
  16. 2
  17. False
  18. <th>
  19. 4
  20. 4
  21. 3
  22. False
  23. 2
  24. 4
  25. True
  26. 4
  27. 2
  28. True
  29. 4
  30. 6
  31. <table>
  32. False
  33. 2
  34. 4
  35. 12
  36. 9
  37. 12
  38. 2
  39. True
  40. <tr>

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