表格标题可以在边框内部,也可以在外部
放在表格外使用<caption>添加
<head>
<style type="text/css">
td,th{border:thin solid black;}
table{border:thick solid Blue;
border-collapse:collapse;}
</style>
</head>
<table>
<caption>Fruit Juice Drinks</caption>
<tr>
<th></th>
<th>Apple</th>
<th>Orange</th>
<th>Screwdriver</th>
</tr>
<tr>
<th>Breakfast</th>
<td>0</td>
<td>1</td>
<td>0</td>
</tr>
<tr>
<th>Lunch</th>
<td>0</td>
<td>1</td>
<td>0</td>
</tr>
</table>
</body>