Example The following example sets the space between the cells to ten pixels: <table border="1" cellspacing="10...
Example
The following example sets the space between the cells to ten pixels:<table border="1" cellspacing="10"> <tr> <th>Month</th> <th>Savings</th> </tr> <tr> <td>January</td> <td>$100</td> </tr> </table> |
Definition and Usage
The cellspacing attribute specifies the space between cells.Note: Do not confuse this with the cellpadding attribute, which specifies the space between the cell wall and the cell content.
Browser Support
The cellspacing attribute is supported in all major browsers.Syntax
<table cellspacing="value"> |
Attribute Values
Value | Description |
---|---|
pixels | The space between cells |