In Action

HTML Table cellpadding tag

This tag is used to determine the spacing between the content and the cell border.

Table1
row #1
row #2

Table1
row #1
row #2


Toycode

HTML Code

Just cut-n-paste to reuse.

    
<table border="1" cellspacing="0">
  <th>Table1</th>
  <tr>
    <td>row #1 </td>
  </tr>
  <tr>
    <td>row #2 </td>
  </tr>
</table>

<br>

<table border="1" cellspacing="0" cellpadding="10">
  <th>Table1</th>
  <tr>
    <td>row #1 </td>
  </tr>
  <tr>
    <td>row #2 </td>
  </tr>
</table>