FILE5.HTML : A simple table
Copy and paste, or type, the HTML code shown below into your text editor, and save it as "file5.html":
<html>
<head>
<title>(file5.html) A simple table</title>
</head>
<body>
<h1>A Simple Table</h1>
<table border="1" summary="This table shows details of whether various people in a (fictional!) department have passed each of two training courses, and when.">
<caption>Current Training</caption>
<tr>
<th rowspan=2>Name</th>
<th colspan=2>Module 1</th>
<th colspan=2>Module 2</th>
</tr>
<tr>
<th>Passed</th>
<th>Date</th>
<th>Passed</th>
<th>Date</th>
</tr>
<tr>
<td>John Smith</td>
<td>Yes</td>
<td>1.7.99</td>
<td>No</td>
<td>----</td>
</tr>
<tr>
<td>Ann Brown</td>
<td>Yes</td>
<td>15.6.99</td>
<td>Yes</td>
<td>15.7.99</td>
</tr>
</table>
</body>
</html>
Alternatively, this link leads to a copy of this file, already created for you.
Return to the tutorial or return to the list of example files.
|