This Blog is for HTML Tutorials.

HTML Logo

HTML Table "Spacing between Cells"

The cellspacing attribute of the table element specifies the border width of a table.

 <Table cellspacing = "3">

CellSpacing

Example

When cellspacing is 0

  
<table border = "1" cellspacing = "0">
<tr>
        <td>Cell A</td>
        <td>Cell B</td>
        <td>Cell C</td> 
</tr> 
</table> 

Output


CellSpacing2

When cellspacing is 5 


<table border = "1" cellspacing = "5">
<tr>
        <td>Cell A</td>
        <td>Cell B</td>
        <td>Cell C</td> 
</tr> 
</table> 

Output


CellSpacing3


When cellspacing is 15 


<table border = "1" cellspacing = "15">
<tr>
        <td>Cell A</td>
        <td>Cell B</td>
        <td>Cell C</td> 
</tr> 
</table> 

Output


CellSpacing4




https://tutorialspointhtml.blogspot.com/2020/05/html-Advanced-table-border.html https://tutorialspointhtml.blogspot.com/2020/05/html-Advanced-table-spacing-within-cell.html

Post a Comment

0 Comments