HTML

Topic: Tables

What are the differences between cell spacing and cell padding?

Cell spacing and Cell padding are used for formatting but there is a major difference between cell padding and cell spacing. It is as follows: Cell padding is used to set extra space which is used to separate cell walls from their contents whereas cell spacing is used to set space between cells.The general format of specifying cell spacing cell padding are as follows:< table width="100" border="2" cellspacing="20">< table width="100" border="2" cellpadding="5">One can also apply cell spacing and cell padding together. It is done as follows:< table width="100" border="2" cellpadding="5" cellspacing =”20”>

Browse random answers: