Intro to HTML - 0100

Menu Back Next
HTML Tags! - Creating Tables

<TABLE> Define a Table
<CAPTION>...text...</CAPTION> Define a Table Caption
<TH> Define a Header Label
<TR>...</TR> Define a Table Row
<TD>Define Table Cell Data


Here is a Sample Table - This is the Caption
Browsers Used - Header Label
NetscapeInternet ExplorerOthersTotals
199669%22%9%100%
199766%28%6%100%

Here is the code needed to generate the above table

<table border=5>
<caption>Here is a Sample Table - This is the Caption</caption>
<th colspan=5>Browsers Used - Header Label
<tr><td><td>Netscape<td>Internet Explorer<td>Others<td>Totals</tr>
<tr><td>1996<td>69%<td>22%<td>9%<td>100%</tr>
<tr><td>1997<td>66%<td>28%<td>6%<td>100%</tr>
</table>