← Tables lesson New set →

HTML Worksheet: Tables

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

Answer key

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

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