HTML Table cellspacing attribute


The following example sets the space between the cells to ten pixels:
<table border="1" cellspacing="10">

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.


<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.