HTML element: <td>
Availability
|
Partial support as of BlackBerry®
Device Software version 4.0.
Full support as of BlackBerry Device Software version 4.6.
|
The <td> element specifies a cell in a table
Differences between HTML, XHTML, and XHTML-MP
The bgcolor, height, nowrap, and width attributes are deprecated in HTML 4.01. They are not supported in XHTML (strict) or XHTML-MP.
Attributes
Attribute
|
Value(s)
|
Description
|
Supported in
|
abbr
|
text
|
This attribute specifies an abbreviated version of the text in a cell.
|
4.6 or later
|
align
|
center
char
justify
left
right
|
This attribute specifies the horizontal alignment of the cell data.
|
4.0 or later
|
axis
|
category_names
|
This attribute specifies a comma-separated list of cell category names.
|
4.6 or later
|
background
|
URI
|
Deprecated. This attribute defines an image used as the background.
|
4.6 or later
|
bgcolor
|
color
|
Deprecated. This attribute specifies the background color of the table cell.
|
4.6 or later
|
colspan
|
number
|
This attribute specifies the number of rows that the cell should span.
|
4.0 or later
|
headers
|
cell_heading_ids
|
This attribute specifies a space-separated list of cell ids that provide header information for the cell.
|
4.6 or later
|
height
|
length
|
Deprecated. This attribute specifies the height of the table cell.
|
4.6 or later
|
nowrap
|
—
|
Deprecated. When specified, this attribute indicates that text is not wrapped in the cell.
|
4.6 or later
|
rowspan
|
number
|
This attribute specifies the number of rows the table cell spans.
|
4.0 or later
|
scope
|
col
colgroup
row
rowgroup
|
This attribute specifies whether the cell provides header information for the column, column group, row, or row group.
|
4.6 or later
|
valign
|
baseline
bottom
middle
top
|
This attribute specifies the vertical alignment of the content within the cell.
|
4.6 or later
|
width
|
length
|
Deprecated. This attribute sets the width of the table cell, either in pixels or as a percentage of the browser window.
|
4.0 or later
|
Common attributes
|
—
|
The <td> element supports the following common attributes:
- class
- dir
- id
- lang
- style
- title
|
4.6 or later
|
Event attributes
|
—
|
The <td> element supports the following event attributes:
- onclick
- onkeydown
- onkeypress
- onkeyup
- onmousedown
- onmousemove
- onmouseout
- onmouseover
- onmouseup
|
4.6 or later
|
Index
Was this information helpful? Send us your comments.