<!DOCTYPE html>
<html lang="en">
<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">
<caption>
记账表
</caption>
<thead>
<tr align="center">
<th>名称</th>
<th>数量</th>
<th>金额</th>
</thead>
<tbody>
<tr>
<td>白菜</td>
<td>1</td>
<td>5</td>
</tr>
<tr>
<td>菠菜</td>
<td>2</td>
<td>10</td>
</tr>
<tr>
<td>大米</td>
<td>10</td>
<td>80</td>
</tr>
</tbody>
<tfoot>
<tr>
<td>总和</td>
<td>13</td>
<td>95</td>
</tr>
</tfoot>
</table>
</body>
</html>