<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>表格制作</title>
</head>
<body>
<table cellspacing="0" border="1">
<caption>员工表格</caption>
<colgroup bgcolor="#fff"></colgroup>
<colgroup bgcolor="skyblue"></colgroup>
<colgroup bgcolor="#fff"></colgroup>
<colgroup bgcolor="#512"></colgroup>
<tr>
<td colspan="2">属性</td>
<td colspan="3">基本信息</td>
</tr>
<tr>
<th>id</th>
<th>姓名</th>
<th>性别</th>
<th>年龄</th>
<th><a href="#">删除</a></th>
</tr>
<tr>
<td>1</td>
<td><img src="https://img.php.cn/upload/avatar/000/000/003/584e5fd414620819.jpg" alt="小狗">张三</td>
<td>男</td>
<td>20</td>
<td><a href="#">删除</a></td>
</tr>
<tr>
<td>2</td>
<td><img src="https://img.php.cn/upload/avatar/000/000/003/584e5fd414620819.jpg" alt="小狗">张四</td>
<td>男</td>
<td>21</td>
<td><a href="#">删除</a></td>
</tr>
<tr>
<td>3</td>
<td><img src="https://img.php.cn/upload/avatar/000/000/003/584e5fd414620819.jpg" alt="小狗">张五</td>
<td>男</td>
<td>22</td>
<td><a href="#">删除</a></td>
</tr>
</table>
</body>
</html>
实例