<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>表格</title>
</head>
<body>
<table border="1" width="500">
<!-- 标题 -->
<caption>
标题
</caption>
<thead>
<tr>
<th>Monday</th>
<th>Tuesday</th>
<th>Wednesday</th>
<th>Thursday</th>
<th>Friday</th>
</tr>
</thead>
<tbody>
<tr>
<td>语文</td>
<td>数学</td>
<td>英语</td>
<td>x</td>
<td>x</td>
</tr>
<!-- 第2行 -->
<tr>
<!-- 水平方向合并: 只保留第1个,将相邻的td删除/注释 -->
<td>x</td>
<td colspan="4" bgcolor="lightgreen">x</td>
<!-- <td>x</td>
<td>x</td>
<td>x<td>-->
</tr>
<tr>
<td>x</td>
<td>x</td>
<!-- 垂直方向: 只保留当前行的td, 将相邻的行对应看位置的td删除/注释 -->
<td rowspan="3" bgcolor="cyan">x</td>
<td>x</td>
<td>x</td>
</tr>
<tr>
<td>4</td>
<td>x</td>
<!-- <td>x</td> -->
<td>x</td>
<td>x</td>
</tr>
<tr>
<td>5</td>
<td>x</td>
<!-- <td>x</td> -->
<td>x</td>
<td></td>
</tr>
</tbody>
<tfoot>
<tr>
<td>x</td>
<td>x</td>
<td>x</td>
<td>x</td>
<td>x</td>
</tr>
</tfoot>
</table>
</body>
</html>