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.
  • Table data elements are contained in cells.

The table tag creates a table. Rows are defined using the tr tag and data element cells are defined using the td tag.

The following table is composed of three rows and eleven columns. Each row has eleven data elements:

Dodgers
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

tr is short for Table Row.

td is short for Table Data.

Email Kris! kbark-s444@chusd.org