Skip to content
doubtly

1 answer

Best answer

Cell Padding and Cell Spacing are the attributes of formatting a table basically sets the white spaces in your table.

Cell Padding Cell Spacing
Used to fix the width/space between the border and its content Fixes the white space between the single cell, i.e., space between the edges and adjacent cell
Syntax:
<table cellpadding=”value” >
…..
…..
</table>
Here, cellpadding value specifies the space between the border and its content
Syntax:
<table cellspacing=”value” >
…..
……
</table>
Here, cellspacing value specifies the space between adjacent cells
The default cellpadding value is 1 The default cell spacing value is 2
codelikepro · 19 Aug 2022 Report
Was this answer helpful?

Your answer

Log in or create a free account to answer this question.