Latest

recent

HTML Table cellspacing attribute

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
HTML Table cellspacing attribute Reviewed by 1000sourcecodes on 02:28 Rating: 5
Powered by Blogger.