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
Share this article :
Copyright © 2012. Best Online Tutorials | Source codes | Programming Languages - All Rights Reserved