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 twelve columns and their cells:
Inning | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | Final |
---|---|---|---|---|---|---|---|---|---|---|---|
Chicago Cubs | 1 | 0 | 0 | 2 | 2 | 1 | 0 | 0 | 0 | 2 | 8 |
Cleveland Indians | 0 | 0 | 1 | 0 | 2 | 0 | 0 | 3 | 0 | 1 | 7 |