A table with spanned rows and columns
<!DOCTYPE html>
<html>
<head>
<title></title>
<style type="text/css">
body { padding: 36px; }
th, td { padding: 3px 6px; }
th { text-align: left; }
td { text-align: right; }
caption { font-style: italic; }
</style>
</head>
<body>
<table border="2">
<caption align="bottom">The Inner Planets</caption>
<tr>
<th rowspan="2"></th>
<th colspan="2">Distance from sun</th>
<th rowspan="2">Year<br/>Length</th>
<th rowspan="2">Day<br/>Length</th>
</tr>
<tr>
<th>Kilometers</th><th>AUs</th>
</tr>
<tr>
<th>Mercury</th>
<td>57,900,000</td><td>.38</td><td>88 days</td><td>59 days</td>
</tr>
<tr>
<th>Venus</th>
<td>108,200,000</td><td>.72</td><td>225 days</td><td>243 days</td>
</tr>
<tr>
<th>Earth</th>
<td>149,600,000</td><td>1.0</td><td>365 days</td><td>24 hrs</td>
</tr>
<tr>
<th>Mars</th>
<td>227,900,000</td><td>1.5</td><td>687 days</td><td>24.6 hrs</td>
</tr>
</table>
</body>
</html>
Related examples in the same category