HTML and CSS Reference
In-Depth Information
<th>Pupil</th>
<th>Result</th>
</tr>
<tr>
<td>James</td>
<td>85</td>
</tr>
<tr>
<td>Alicia</td>
<td>97</td>
</tr>
<tr>
<td>Tom</td>
<td>76</td>
</tr>
<tr>
<th colspan="2">Class 3A</th>
</tr>
<tr>
<th>Pupil</th>
<th>Result</th>
</tr>
<tr>
<td>Ben</td>
<td>82</td>
</tr>
<tr>
<td>Louise</td>
<td>92</td>
</tr>
</table>
When this example is displayed in the browser, the <th> elements will span the full width of the table, as shown in
Figure 4-9.
Figure 4-9 A table with <th> elements that use the colspan attribute.
Search WWH ::




Custom Search