Table Examples

Example 1

WIDTH attribute can be in pixels or a percentage of the browser width

<TABLE>
<CAPTION>Table 1</caption>
<TR>
<TD WIDTH=100>Cell1</td>
<TD WIDTH="25%">Cell2</td>
</tr>
</table>
     Produces this table     
Table 1
Cell1 Cell2

Example 2

Displaying the BORDER attribute

<TABLE BORDER=0> <TABLE BORDER=1> <TABLE BORDER=5>
Cell1 Cell2
Cell1 Cell2
Cell1 Cell2

Example 3

Displaying the CELLSPACING attribute

<TABLE CELLSPACING=0> <TABLE CELLSPACING=5> <TABLE CELLSPACING=20>
Cell1 Cell2
Cell1 Cell2
Cell1 Cell2

Example 4

Displaying the CELLPADDING attribute

<TABLE CELLPADDING=0> <TABLE CELLPADDING=5> <TABLE CELLPADDING=20>
Cell1 Cell2
Cell1 Cell2
Cell1 Cell2

Example 5

Getting creative with tables. View source for code.

 JANUARY 2000
Sun Mon Tue Wed Thu Fri Sat
            1

Vacation

*Go swimming

 


Precoded Tables

Rows x Columns

1x2 Table 1x3 Table 1x4 Table 2x1 Table 2x2 Table 2x3 Table
<TABLE>

<TR>
<TD></td>
<TD></td>
</tr>
</table>
<TABLE>

<TR>
<TD></td>
<TD></td>
<TD></td>
</tr>
</table>
<TABLE>

<TR>
<TD></td>
<TD></td>
<TD></td>
<TD></td>
</tr>
</table>
<TABLE>

<TR>
<TD></td>
</tr>
<TR>
<TD></td>
</tr>
<TABLE>

<TR>
<TD></td>
<TD></td>
</tr>
<TR>
<TD></td>
<TD></td>
</tr>
<TABLE>

<TR>
<TD></td>
<TD></td>
<TD></td>
</tr>
<TR>
<TD></td>
<TD></td>
<TD></td>
</tr>
</table>
3x1 Table 3x2 Table 3x3 Table
<TABLE>

<TR>
<TD></td>
</tr>
<TR>
<TD></td>
</tr>
<TR>
<TD></td>
</tr>
<TABLE>

<TR>
<TD></td>
<TD></td>
</tr>
<TR>
<TD></td>
<TD></td>
</tr>
<TR>
<TD></td>
<TD></td>
</tr>
<TABLE>

<TR>
<TD></td>
<TD></td>
<TD></td>
</tr>
<TR>
<TD></td>
<TD></td>
<TD></td>
</tr>
<TR>
<TD></td>
<TD></td>
<TD></td>
</tr>
</table>