Set Cellpadding and Cellspacing in CSS
It is fairly simple to set the cellpadding and cellsetting of a table in HTML but there are some drawbacks with the HTML option as explained below. The other option is to set the cellpadding and cellsetting by defining the properties in the CSS.
The cellspacing and cellpadding properties in CSS are largely the same as the HTML version. The HTML code would look like this: