Differentiate between cellpadding and cellspacing in HTML table.
|Topic||Working with tables in HTML|
|It is used for formatting purpose which specifies the space between the edges of the cells and also in the cell contents.||It is one also used for formatting purpose but it sets space between cells.|
|The general format of specifying cellpadding in HTML is as follows: <TABLE width="100" border ="2" cellpadding="5">||The general format of specifying cellspacing in HTML is as follows: <TABLE width="100" border="2" cellspacing ="20">|
|The default value of cellpadding attribute is 1.||The default value of cellspacing attribute is 2.|