Tables are composed of rows and columns. They are used to display data. Remember that:
The table tag creates a table. Rows are defined using the tr tag and cells are defined using the th or the td tag.
The following table is composed of three rows and eleven columns and their cells:
Inning | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | Final |
---|---|---|---|---|---|---|---|---|---|---|
Dodgers | 0 | 0 | 2 | 3 | 0 | 0 | 0 | 0 | 1 | 6 |
Giants | 0 | 0 | 3 | 2 | 0 | 0 | 0 | 0 | 0 | 5 |