← Tables lesson New set →

HTML Worksheet: Tables

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

Answer key

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

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