Skip to content

<table> element

The <table> element represents a table on the page. Each table can have one or more rows.

Attributes

Attribute Description
left The left offset of the header in pixels.
top The top offset of the header in pixels.
width The width of the header in pixels.
height The height of the header in pixels.
styles Contains a semicolon delimited list of name:value pair style information values.

Styles

Node Description
width Indicates the width of the table, the unit of measure is defined by widthType.
widthType Indicates the how width is applied, can be one of the following:- Auto- Percentage- Point
indent Indicates the indentation of the table, in points.
repeatHeader Contains how may rows should be repeated when a table is split.
cellSpacing Contains the cell spacing, in points.
rightToLeft Indicates that the table is right to left.
type Indicates the type of table, can be one of the follow:- Normal (word processing style) - text will wrap in cells.- Spreadsheet – text does not wrap, it will span over empty cells.

Children

Node Description
<tr> A table can contain one or more Table Row <tr> elements.