cellpadding

Cell Padding (XHTML table model)

Use W3C documentation for the XHTML1.1 table model. (http://www.w3.org/TR/xhtml-modularization/abstract_modules.html#s_tablemodule)

Remarks

Specifies the amount of space, in pixels, between the border of a cell and the contents of a table cell

Best Practice: Although the Tag Set can enforce only that this attribute contain any text, numbers, or special characters, best practice is to constrain this value to a counting number (positive integer).

Attribute Values

In Element

<table>
Value Meaning
Counting number Thickness, measured in pixels of the cell padding
Restriction: The browser default is “ 1 ” pixel.