HTML element: <th>
The <th> element specifies a table heading cell. By default, the BlackBerry Browser renders text in a heading cell as bold.
Attributes
Attribute |
Value(s) |
Description |
Availability |
|---|---|---|---|
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. |
3.7 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. |
3.7 or later |
colspan |
number |
This attribute specifies the number of rows that the cell should span. |
3.7 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. |
3.7 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. |
3.7 or later |
Common attributes
The <th> element supports the class, dir, id, lang, style, and title attributes.
For more information, see Common attributes.
Event attributes
The <th> element supports the onclick, onkeydown, onkeypress, onkeyup, onmousedown, onmousemove, onmouseout, onmouseover, and onmouseup events.
For more information, see HTML event attributes.