Tables
Tables are composed of rows and columns. They are used to display data. Remember that:
- Rows go side to side.
- Columns go up and down.
The table tag creates a table. Rows are defined using the tr tag and columns are defined using the td tag.
The following table is composed of three rows and ten columns:
Inning |
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
Giants |
5 |
3 |
5 |
6 |
8 |
5 |
4 |
3 |
38 |
Dodgers |
0 |
1 |
1 |
0 |
2 |
0 |
5 |
1 |
10 |
Dodgers suck...
tr is short for Table Row.
td is short for Table Data