← Tables lesson New set →

HTML Worksheet: Tables

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

Answer key

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

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