Optional Attributes
DTD indicates in which DTD the attribute is allowed. S=Strict, T=Transitional, and F=Frameset.
Attribute | Value | Description | DTD |
---|---|---|---|
align | left center right | Deprecated. Use styles instead. Specifies the alignment of a table according to surrounding text | TF |
bgcolor | rgb(x,x,x) #xxxxxx colorname | Deprecated. Use styles instead. Specifies the background color for a table | TF |
border | pixels | Specifies the width of the borders around a table | STF |
cellpadding | pixels | Specifies the space between the cell wall and the cell content | STF |
cellspacing | pixels | Specifies the space between cells | STF |
frame | void above below hsides lhs rhs vsides box border | Specifies which parts of the outside borders that should be visible | STF |
rules | none groups rows cols all | Specifies which parts of the inside borders that should be visible | STF |
summary | text | Specifies a summary of the content of a table | STF |
width | pixels % | Specifies the width of a table | STF |