The cellspacing attribute of the TABLE element specifies the space between cells.
<table cellspacing="3">
| Attribute | Value | Explanation |
|---|---|---|
| cellspacing=" " | pixels or % | the size of the space |
This can be specified with CSS. Please see the "Related Document" for details on CSS.
The cellspacing is 0
<table border="1" cellspacing="0">
<tr>
<td>Cell A</td>
<td>Cell B</td>
<td>Cell C</td>
</tr>
</table>
| Cell A | Cell B | Cell C |
The cellspacing is 5
<table border="1" cellspacing="5">
<tr>
<td>Cell A</td>
<td>Cell B</td>
<td>Cell C</td>
</tr>
</table>
| Cell A | Cell B | Cell C |
The cellspacing is 15
<table border="1" cellspacing="15">
<tr>
<td>Cell A</td>
<td>Cell B</td>
<td>Cell C</td>
</tr>
</table>
| Cell A | Cell B | Cell C |