<!DOCTYPE html>
<html lang="zh-CN">
<head>
<title> 我的页面 </title>
<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>Document</title>
</head>
<body>
<h6>注释快捷键ctrl+/  表示空格符 <表示小于号 >表示大于号</h6>
<h6>align 规定表格相对周围元素的对齐方式 left center right</h6>
<h6>border 规定表格单元是否拥有边框,默认为"",表示没有边框 1或者""</h6>
<h6>cellpadding 规定单元边沿与其内容之间的空白,默认1像素</h6>
<h6>cellspacing 规定单元格之间的空白,默认2像素</h6>
<h6>width 规定表格的宽度</h6>
<h6>thead标签表格的头部区域 tbody标签表格的主体区域</h6>
<h6>跨行合并rowspan="合并单元格的个数</h6>
<h6>跨行:最上侧单元格为目标单元格,写合并代码</h6>
<h6>跨列合并colspan="合并单元格的个数</h6>
<h6>跨列:最左侧单元格为目标单元格,写合并代码</h6>
<h6>合并完之后记得删除多余的单元格</h6>
<table align="center" border="1" cellpadding="10" cellspacing="0" width="200" height="200">
<thead>
<tr> <th>姓名</th> <th>性别</th> <th>年龄</th> </tr>
</thead>
<tbody>
<tr> <td>张三</td> <td>男</td> <td rowspan="3">18</td> </tr>
<tr> <td>李四</td> <td>男</td> </tr>
<tr> <td>王五</td> <td>男</td> </tr>
</tbody>
</table>
</body>
</html>