Name
<td> — NN: 2, 3, 4 • MSIE: 2, 3, 4, 5 • HTML 4 • WebTV • Opera3
Synopsis
<td>...</td>
Within a <table>, defines a table data cell.
The end tag is not required, but may prevent unpredictable table
display, particularly if the cell contains images. A table cell can
contain any content, including another table.
Attributes
align=left|center|rightAligns the text (or other elements) within the table cell. The default value is left. This attribute has been deprecated by the W3C HTML 4.0 Specification in favor of positioning with style sheets.
background=urlSpecifies a graphic image to be used as a tile within the cell. Navigator’s documentation does not cover this tag, but it is supported by version 4.0.
bgcolor=#rrggbborcolor nameSpecifies a color to be used in the table cell. A cell’s background color overrides colors specified at the row or table levels.
colspan=numberSpecifies the number of columns the current cell should span. The default value is 1. According to the W3C HTML 4.0 Specification, the value (zero) means the current cell spans all columns from the current column to the last column in the table; in reality, however, this feature is not supported in currently available 4.0 browsers.
height=number, percentageSpecifies the height of the cell in number of pixels or by a percentage value relative to the table height. The height specified in the first column will apply to the rest of the cells in the row. The height values need to be consistent for cells in ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access