<!DOCTYPE html>
<html>
<head>
<mate charest="UTF-8">
<title>表格标签</title>
</head>
<body>
<h3>成绩表</h3>
<hr />
<table border="1">
<caption>成绩表</caption>
<thead>
<tr>
<th>科目</th>
<th>分数</th>
</tr>
</thead>
<tbody>
<tr>
<td>语文</td>
<td>99</td>
</tr>
<tr>
<td>数学</td>
<td>60</td>
</tr>
</tbody>
<tfoot>
<tr>
<td>总分</td>
<td>159</td>
</tr>
</tfoot>
</table>
</body>
</html>
<tr></tr>:表格的行
<th></th>:表格的表头(默认加粗且居中显示)
<td></td>:表格的一个单元格,一行中包含几对<td></td>,说明一行就有几列
<caption></caption>:定义表格的标题
border属性可以为表格添加边框,属性值为数字
<thead></thead>:包裹的表头
<tbody></tbody>:包裹的表身
<tfoot></tfoot>:包裹的表尾
加thead、tbody、tfoot标签和不加的区别:加了可以一部分一部分的显示,不用等整个表格加载完后显示。