In this post, we will understand the difference between cellpadding and cell spacing.
It is associated with a single cell.
It helps control the white space that is present between the border of the cell and the contents within the cell.
The default value of cell padding is 1.
It is used as an effective method.
It is created using HTML <table> tag.
The type of attribute is set to ‘cellpadding’.
<table cellpadding="value" >.....</table>
It is associated with more than a single cell.
It helps set the space between the single cells.
It is less effective than cell padding.
The default cell spacing value is 2.
It can be created using HTML <table> tag.
The type of attribute is set to ‘cellspacing’.
<table cellspacing="value" >.....</table>