Tables
Cell Examples


TH #1 TH #2 TH #3
Row1-Div1 Row1-Div2 Row1-Div3
Row2-Div1 Row2-Div2 Row2-Div3
Row3-Div1 Row3-Div2 Row3-Div3
Table 1: Example of Tables

HTML Code:

<table border="5" cellpadding="8" cellspacing="4" bgcolor="yellow" width="90%" align="center" >
<tr>
  <th width="
50%">TH #1</th>
  <th width="
20%">TH #2</th>
  <th>TH #3</th>
</tr>
<tr>
  <td>
Row1-Div1</td> 
  <td>
Row1-Div2</td>
  <td align="right">Row1-Div3</td></tr>
<tr>
  <td>Row2-Div1</td>
  <td>Row2-Div2</td>
  <td>Row2-Div3</td>
</tr>
<tr>
  <td>Row3-Div1</td>
  <td>Row3-Div2</td>
  <td>
Row3-Div3</td>
</tr>
<caption align=
"BOTTOM"> <b>Table 1</b>: Example of Tables</caption>
</table>


Span Tags: colspan & rowspan:

colspan="2"
Cell Cell
rowspan="2 Cell
Cell

HTML Code:

<table border="1" cellspacing="1" width="100%" align="center">
  <tr>
    <td width=
"50%" colspan="2">colspan=&quot;2&quot;</td>
  </tr>
  <tr>
    <td width=
"25%">Cell</td>
    <td width=
"25%">Cell</td>
  </tr>
  <tr>
    <td width=
"25%" rowspan="2">rowspan=&quot;2</td>
    <td width=
"25%">Cell</td>
  </tr>
  <tr>
    <td width=
"25%">Cell</td>
  </tr>
</table>