Name
table
Synopsis
<table>...</table>
Indicates a table. The end tag is required, and its omission may cause the table not to render in some browsers.
Attributes
Core(id,
class, style, title),
Internationalization,
Events
-
align="left|right|center" Deprecated. Aligns the table within the text flow (same as
alignin theimgelement). The default alignment isleft. Thecentervalue is not universally supported.bgcolor="#rrggbb"or"color name"Deprecated. Specifies a background color for the entire table. Value is specified in hexadecimal RGB values or by color name. (See Appendix D for more information on specifying colors in HTML.)
-
border="number" Specifies the width (in pixels) of the border around the table and its cells. Setting its value to 0 (zero) turns the borders off completely. The default value is 1. Adding the word
borderwithout a value results in a 1-pixel border, although this is not valid in XHTML.-
cellpadding="number" Sets the amount of space, in number of pixels, between the cell border and its contents. The default value is 1.
-
cellspacing="number" Sets the amount of space (in number of pixels) between table cells. The default value is 2.
-
frame="void|above|below|hsides|lhs|rhs|vsides|box|border" Tells the browser where to draw borders around the table. The values are as follows:
Value
Description
voidThe frame does not appear (default).
aboveTop side only.
belowBottom side only.
hsidesTop and bottom sides only.
vsidesRight and left sides ...