TH HTML Element
The TH element specifies a table header column. This is a block element and requires a closing tag.
Note The TH element has default formatting for the contents, which are centered and use a bold style. It is almost the same as a TD element, except for the default formatting.
Attributes
Attribute | Value | Description |
---|---|---|
ALIGN | Left
Center Right |
Specifies table cell alignment. |
BACKGROUND | URL | Specifies the URL of a background image to be displayed beneath the table header.
Note Supported only for devices running Windows Mobile 2003 software or later. |
BGCOLOR | Special | Sets the background color of the table header. Table header background colors are disabled on grayscale devices, and backgrounds are always white. |
CLASS | Associates the element with a CSS style.
Note Supported only for devices running Windows Mobile 2003 software or later. |
|
COLSPAN | 1...# | Sets the number of columns that the table header spans in the table. |
HEIGHT | Special | Specifies the height of the current cell. In an HTML table, this sets the height for an entire row.
Note Supported only for devices running Windows Mobile 2002 software or later. |
ID | Uniquely identifies the element within a document.
Note Supported only for devices running Windows Mobile 2003 software or later. |
|
NOWRAP | This is a stand-alone attribute, specifying that data within the current cell does not use normal HTML line-breaking conventions. The table cell enlarges to fit whatever data is specified in the cell.
Note Supported only for devices running Windows Mobile 2002 software or later. |
|
ROWSPAN | 1...# | Sets the number of rows that the table header should span in the table. |
STYLE | Provides the definition of the CSS styles used for this element.
Note Supported only for devices running Windows Mobile 2003 software or later. |
|
VALIGN | Top | Specifies the vertical alignment of the contents of the table cell. The top value aligns contents with the top of the table cell. |
VALIGN | Middle | Aligns contents with the middle of the table cell. |
VALIGN | Bottom | Aligns contents with the bottom of the table cell. |
VALIGN | Baseline | Aligns the base line of the first line of text with the base lines in adjacent table cells. |
VALIGN | Center | Aligns contents with the middle of the table cell. |
WIDTH | Special | Specifies the width of the table header in pixels.
Note Percentage widths are supported only for devices running Windows Mobile 2002 software or later. |
Requirements
Smartphone: Windows Mobile 2002 and later
OS Versions: Windows CE 3.0 and later
Last updated on Friday, April 22, 2005
© 2005 Microsoft Corporation. All rights reserved.
Send feedback on this topic to the authors.