HTML
Example
Set the spacing between the cell edges and the cell content to 10 pixels:
| Month | Savings |
|---|---|
| January | $100 |
Try it »
Browser support





All major browsers support the cellpadding attribute.
Definition and Usage
HTML5 does not support
The cellpadding attribute specifies the space between the cell edges and the cell content, in pixels.
**Note:** Do not confuse this attribute with cellspacing the attribute; the cellspacing attribute specifies the space between cells.
**Tip:** From a practical standpoint, it is best not to specify cellpadding, but to use CSS to add padding (inner spacing).
HTML