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