用途
<caption> 标签显示表格标题,作为<table>子元素,且只能对每个表格定义一个标题。
例子
<table width="100%" border='1'>
<caption>A caption</caption>
<tr>
<td>one</td>
<td>two</td>
<td>three</td>
</tr>
</table>
执行结果
A caption
one | two | three |
---|
<caption> 标签在HTML5与HTML4.01之间存在如下差异
上一篇:<ul>标签