<th> ... </th>
Defines a table header cell. Table header cells provide
important information and context to the table cells in the row or
column that they precede. They are an important tool for making the
information in tables accessible. In terms of markup, they function
the same as table data cells (
#rrggbbor color name
alignis set to
char. The default character is a decimal point (language-appropriate). This attribute is generally not supported by current browsers.
id) that provide header information for the current data cell. This is intended to make tables more accessible to nonvisual browsers.
brelement or by starting a new paragraph.
colindicates that the current cell is the header for all the cells that fall below.
colgroupindicates the current cell is the header for the column group that contains it. A value of
rowmeans that the current cell is the header for the cells in the rest of the row. A value of
rowgroupmeans the current cell is the header for the containing row group. This is intended to make tables more accessible to nonvisual browsers.
<th>Distance from Earth</th>
<td>pretty darn far</td>
|Planet||Distance from Earth|
|Venus||pretty darn far|
A gray background color was added to
td elements to make their boundaries more evident.