The best understanding of data table markup begins with an examination of the smaller parts of a table, as illustrated in Figure 10-1.
Figure 10-1. Data table anatomy
These will typically contain all of the data points that relate
to a single item. Rows are themselves divided into cells (
td), and analogous cells in separate rows
are always rendered into consistent columns. Apart from
tbody, rows and cells are the two elements
that must be present in a table.
Readers who are familiar with relational databases will
tr elements signal
the bounds of a single record.
Just as a row relates to a single item, a column relates to a common
class of data. Each column in a table corresponds to the table cells
found at an interval of
n equals the number of cells
in each row.
th functions as an
and defines the character of data found in a particular row or
th elements are distinct
td elements not only in
terms of presentation, but also because they are set aside
specifically to create table cells that do
not contain actual data.
Headings are assigned to normal copy; in spite of their name,
captions serve an analogous role for data tables. They are always rendered at the top of tables, as a heading would be ...