TD HTML Element

Send Feedback

The TD element specifies a table cell. This is a block element and requires a closing tag.

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 cell.
Note   Supported only for devices running Windows Mobile 2003 software or later.
BGCOLOR Special Sets the table cell background color. Table cell 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 cell spans in a table.
HEIGHT Special Specifies the current table cell height. In an HTML table, this sets the height for an entire row.
Note   Supported only for devices running PocketPC 2002 and Smartphone 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   A stand-alone attribute, specifying data within the current cell that 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 PocketPC 2002 and Smartphone 2002 software or later.
ROWSPAN 1...# Sets the number of rows that the cell spans in a 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 vertical alignment for the table cell contents. 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 baseline of the first text line with the baselines in adjacent table cells.
VALIGN Center Aligns contents with the middle of the table cell.
WIDTH Special Specifies the table cell width in pixels.
Note   Percentage widths are supported only for devices running PocketPC 2002 and Smartphone 2002 software or later.

Requirements

Pocket PC: Pocket PC 2000 and later
Smartphone: Smartphone 2002 and later
OS Versions: Windows CE 3.0 and later

See Also

Internet Explorer Mobile HTML Elements

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.