cellpadding attribute for table (HTML4 & HTML5)

Number of pixels between the content of a cell and the edge of a cell.

Values

offset in pixels | percentage (Default Value: no default value)

Result from the Online TryIt-Editor
chrome 1.0safari 1.0Firefox 1.0ie 2.0opera 4.0

Examples having uses of html attribute 'cellpadding'

2 votes
4k views

HTML Table Padding

You can increase the space within the table cells and the space between the cells by using the cellpadding and cellspacing attributes. The cellspacing attribute adjusts the space between the cells and cellpadding adjusts the space within (around) the cell.