A cell is where one row and one column intersect. The
content of each cell is enclosed it a td
(table detail) element, unless it is a column or row
heading—those use a th element,
which has the same structure. Here is the content model:
element td
{ Cell.attrib,
Flow.model
}
element th
{ Cell.attrib,
Flow.model
}
Cell.attrib =
attribute rowspan { xsd:positiveInteger }?,
attribute colspan { xsd:positiveInteger }?,
align.attrib?,
valign.attrib?,
Common.attrib
rowspan
Normally each td or th element is placed in exactly one cell. However,
you can merge multiple cells together to form a
larger cell by using a rowspan=" attribute, where N" is the
number of vertically adjacent cells to merge.
N
For example, an element “<td
rowspan='3'>…</td>” would
place the content of that td element
into a wider space consisting of three
cells—the current cell plus the cells from
the same column in the next two rows that follow
it.
colspan
This attribute works like rowspan,
but it spans a horizontally adjacent group of cells
into one. For example, if the cell in column 5 of
a row was specified as <td
colspan='4'>…</td>, its
content would fill columns 5, 6, 7, and 8 of that
row.
align.attrib?, valign.attrib?
These attributes control the horizontal and vertical placement content in the cell. For their definitions, see Section 11.1, “Specifying table column properties”.
Common.attrib
Any of the attributes from Section 15.3, “The common attributes: Common.attrib”.