Share via


TABLE HTML Element

The TABLE element specifies that contained content is organized into a table consisting of rows and columns. This is a block element and requires a closing tag.

Attributes

Attribute Value Description
ALIGN Left

Center

Right

Indicates horizontal alignment of the table relative to the browser window.
Note   Supported only for devices running Windows Mobile 2002 software or later.
BACKGROUND URL Specifies the URL of a background image to be displayed beneath the table.
Note   Supported only for devices running Windows Mobile 2003 software or later.
BGCOLOR Special Sets the table background color. Table background colors are disabled on grayscale devices, and backgrouunds are always white.
BORDER 0...# Sets the border width in pixels. Omitting this attribute or setting it to zero results in borders not being drawn on the table.
BORDERCOLOR Special Sets the table border color. Table border colors are disabled on grayscale devices, and borders are always black.
CELLPADDING 0...# Specifies the amount of space in pixels between the cell border and the cell content. (Percentage values are not supported.)
CELLSPACING 0...# Specifies the amount of space in pixels between table cells. (Percentage values are not supported.)
CLASS   Associates the element with a CSS style.
Note   Supported only for devices running Windows Mobile 2003 software or later.
FRAME Void Specifies how the border frame is displayed around the table. If the value is void, all outside table borders are removed.
FRAME Above Top of the border frame is displayed.
FRAME Below Bottom of the border frame is displayed.
FRAME Hsides Top and bottom borders of the table frame are displayed.
FRAME Vsides Left and right borders of the table frame are displayed.
FRAME LHS Left border of the table frame is displayed.
FRAME RHS Right border of the table frame is displayed.
FRAME Box Borders on all sides of the table frame are displayed.
FRAME Border Borders on all sides of the table frame are displayed.
HEIGHT   Specifies the minimum height of the table when fit-to-screen is off. When fit-to-screen is on, it specifies the minimum height unless the table had a given width and was shrunk by Pocket Internet Explorer.
Note   Supported only for devices running Windows Mobile 2003 software or later.
ID   Uniquely identifies the element within a document.
Note   Supported only for devices running Windows Mobile 2003 software or later.
RULES None All interior table borders are removed.
RULES groups Specifies how groups of borders are displayed.
Note   Supported only for devices running Windows Mobile 2003 software or later.
RULES Rules Specifies how rules (inner borders) are displayed.
RULES Rows Horizontal borders between all table rows.
RULES Cols Borders displayed between all table columns.
RULES All Borders displayed on all rows and columns.
STYLE   Provides the definition of the CSS styles used for this element.
Note   Supported only for devices running Windows Mobile 2003 software or later.
WIDTH Special Specifies the table width in pixels or as a percentage of the parent object.

Requirements

Pocket PC: Windows Mobile 2000 and later
OS Versions: Windows CE 3.0 and later

Send feedback on this topic to the authors.

© 2005 Microsoft Corporation. All rights reserved.