Cellpadding is an attribute used in HTML tables that specifies the amount of space between the border of a table cell and its contents. It is used to define the whitespace between the cell edge and the content of the cell. The cellpadding attribute is added to the table element and is an inline attribute used under the table tag that can overwrite the CSS style. The value of cellpadding is set in pixels and is set to 1 by default. The attribute is used to assign cell padding, and each cell in a table can have its own cellpadding value. The same effect can be accomplished in CSS. The attribute is becoming obsolete as more web designers move to the use of CSS and other newer methods of creating web pages, available in HTML versions 5 and newer.