Please note, this is a STATIC archive of website technosmarter.com from 20 Jul 2022, cach3.com does not collect or store any user information, there is no "phishing" involved.
 

HTML Cellspacing Attribute


The <table> Cellspacing attribute specifies the space between all cells. We declare the Cellspacing in pixels.

We denoted the pixel by the px only like -
20px,300px,40px.

The following example of Table in which cellspacing attribute is used.

HTML Paragraph


<!DOCTYPE>
<html>
<head>
<title>HTML Table </title>
</head>
<body>
<table height="150" width="500" border="1"cellspacing="10px">  
<tr> 
<td> 
Employee Name
</td> 
<td> 
Ramesh 
</td> >
<td> 
Vikash
</td> <td> 
Sheema 
</td> <td> 
Suresh
</td> 
</td> <td> 
Reetu
</td> 
</tr> 
<tr> 
<td> 
Salary
</td> 
<td> 
10000
</td> 
<td> 
15000
</td> <td> 
20000
</td> <td> 
12000
</td> 
<td> 
25000
</td> 
</tr> 
</table>
</body>
</head>
</html>
Run

Please Share

Recommended Posts:-