|
|
The Cell Tags
- <TH></TH>
- Table Header. Header cells are identical to data cells with the
exception that header cells are in a bold font, and have a default
ALIGN=center.
ALIGN controls whether text inside the table cell(s) is aligned to the
left side of the cell, the right side of the cell, or centered within
the cell. Values are left, center, and right.
- <TD></TD>
-
Rows need
not have the same number of cells specified as short rows will
be padded with blank cells on the right.
A cell can contain any of the HTML BODY tags.
Some of the attributes are:
- ALIGN
-
Values are left, center, and right.
- VALIGN
-
Values are top,
middle bottom, and baseline.
- NOWRAP
-
attribute for a cell prevents linebreaking for that cell.
- COLSPAN
-
specifies how many columns of the table this cell should span.
- ROWSPAN
-
specifies how many rows of the table this cell should span.
A span that extends into
rows that were never specified with a TR will be truncated.
Cells spanning rows contribute to the column count on each of the
spanned rows, but only appear in the markup once (in the first row
spanned). The row count is determined by the number of TR elements.
If the column count for the table is greater than the number of cells
for a given row (after including cells for spanned rows),
the missing cells are treated as occurring on the right hand side of
the table and rendered as empty cells.
|
|