Sunday, June 22, 2014

HTML - Example Source Code for Table

<table width="400" border="0" cellspacing="2" cellpadding="2">
  <tr>
    <th>Header 1</th>
    <th>Header 2</th>
    <th>Header 3</th>
  </tr>
  <tr>
    <td>Row 1 - Cell 1</td>
    <td>Row 1 - Cell 2</td>
    <td>Row 1 - Cell 3</td>
  </tr>
  <tr>
    <td>Row 2 - Cell 1</td>
    <td>Row 2 - Cell 2</td>
    <td>Row 2 - Cell 3</td>
  </tr>
  <tr>
    <td>Row 3 - Cell 1</td>
    <td>Row 3 - Cell 2</td>
    <td>Row 3 - Cell 3</td>
  </tr>
  <tr>
    <td>Row 4 - Cell 1</td>
    <td>Row 4 - Cell 2</td>
    <td>Row 4 - Cell 3</td>
  </tr>
</table>
Result of the code above :

Header 1 Header 2 Header 3
Row 1 - Cell 1 Row 1 - Cell 2 Row 1 - Cell 3
Row 2 - Cell 1 Row 2 - Cell 2 Row 2 - Cell 3
Row 3 - Cell 1 Row 3 - Cell 2 Row 3 - Cell 3
Row 4 - Cell 1 Row 4 - Cell 2 Row 4 - Cell 3
Post a Comment