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 column cells are defined using the td tag.
The following table is composed of six rows and three columns:
Ranking | Show | Stars |
1 | Game of Thrones | 9.4 |
2 | The Walking Dead | 8.9 |
3 | Stranger Things | 9.4 |
4 | Family Guy | 8.3 |
5 | Criminal Minds | 9.2 |
The following table is composed of two rows and five columns. Each row has five tds of data:
Coalinga | 7 | 7 | 7 | 7 |
Kingsburg | 7 | 7 | 7 | 0 |
tr is short for Table Row.
td is short for Table Data.