<html lang="zh-cn">
<head>
<meta charset="utf-8">
<title>表格元素</title>
</head>
<body>
<table border="1" style="width:200px">
<tr>
<th>姓名</th>
<th>性别</th>
<th>婚否</th>
</tr>
<tr>
<td>张三</td>
<td>男</td>
<td>未婚</td>
</tr>
<tr>
<td>李四</td>
<td>女</td>
<td>未婚</td>
</tr>
</table>
<br>
<table border="1" style="width:300px">
<tr>
<td rowspan="4">单位人员</td>
</tr>
<tr>
<th>姓名</th>
<th>性别</th>
<th>婚否</th>
</tr>
<tr>
<td>张三</td>
<td>男</td>
<td>未婚</td>
</tr>
<tr>
<td>李四</td>
<td>女</td>
<td>未婚</td>
</tr>
<tr>
<td colspan="4">统计:共两人</td>
</tr>
</table>
<br>
<table border="1" style="width:200px">
<caption>这是一个表格</caption>
<thead>
<tr>
<th>姓名</th>
<th>性别</th>
<th>婚否</th>
</tr>
</thead>
<tbody>
<tr>
<td>张三</td>
<td>男</td>
<td>未婚</td>
</tr>
<tr>
<td>李四</td>
<td>女</td>
<td>未婚</td>
</tr>
</tbody>
<tfoot>
<tr>
<td colspan="3">统计:2人</td>
</tr>>
</tfoot>
</table>
<br>
<table border="1" style="width:200px">
<colgroup style="background:white"></colgroup>
<colgroup style="background:red" span="1"></colgroup>
<caption>这是一个表格</caption>
<thead>
<tr>
<th>姓名</th>
<th>性别</th>
<th>婚否</th>
</tr>
</thead>
<tbody>
<tr>
<td>张三</td>
<td>男</td>
<td>未婚</td>
</tr>
<tr>
<td>李四</td>
<td>女</td>
<td>未婚</td>
</tr>
</tbody>
<tfoot>
<tr>
<td colspan="3">统计:2人</td>
</tr>>
</tfoot>
</table>
</body>
</html>