Easy Tutorial
❮ Att Img Src Av Event Seeked ❯

HTML <table> cellpadding Attribute

HTML <table> Tag

Example

Set the spacing between the cell edge and the cell content to 10 pixels:


Browser Support

All major browsers support the cellpadding attribute.


Definition and Usage

The cellpadding attribute specifies the space between the cell edge and the cell content, measured in pixels.

Note: Do not confuse this attribute with the cellspacing attribute, which specifies the space between cells.

Tip: For practical purposes, it is best not to specify cellpadding, but instead use CSS to add padding.


Syntax

Attribute Values

Value Description
pixels Specifies the space between the cell edge and the cell content.

❮ Att Img Src Av Event Seeked ❯