- Cellpadding is the amount of space between the outer edges of the table cell and the content of the cell.
- Cellspacing is the amount of space in between the individual table cells.
<table cellpadding=”10″> //This is for cell padding.
<table cellspacing=”10″> // This is cell spacing.
Example:-
<html>
<head>
<title>Welcome CastorClasses </title>
</head>
<body>
<table>
<tr>
<td>name</td>
<td>age </td>
<td>gender </td>
</tr>
<tr>
<td>ABC</td>
<td>26</td>
<td>Male </td>
</tr>
<tr>
<td>DEF</td>
<td>24</td>
<td>Female </td>
</tr>
<table cellpadding=”10″>
<table cellspacing=”10″>
</table>
</body>
<html>
0 Comments:
Post a Comment