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”>
HTML
Topic: Tables
What are the differences between cell spacing and cell padding?
Browse random answers:
How to create tables in an HTML document?
Can I use percentage values for <TD WIDTH=...>?
Explain the <th> tag?
Can I nest tables within tables?
Why doesn't <TABLE WIDTH="100%"> use the full browser width?
Why is there extra space before or after my table?
How do I align a table to the right (or left)?
How can I use tables to structure forms?
How do I center a table?
Why doesn't <TABLE WIDTH="100%"> use the full browser width?
Why is there extra space before or after my table?
What are the differences between cell spacing and cell padding?
How do I align a table to the right (or left)?
How can you provide heading to a table?
How to have a table cell that spans two columns in HTML?
What is the relationship between the border and rule attributes?