HTML td abbr 属性

由网友 大卫 发布 阅读 10

HTML td abbr 属性

td abbr属性指定单元格中内容的较短版本。abbr 属性在普通的 Web 浏览器中没有视觉效果,但可以通过屏幕阅读器使用。

 HTML <td> 标签

在线示例

在HTML表中使用abbr属性:

<table border="1">
<tr>
    <th>玩具制造商</th>
    <th>Model</th>
</tr>
<tr>
    <td>布鲁德玩具    </td>
    <td abbr="车辆">8970越野车</td>
</tr>
<tr>
    <td>布鲁德玩具    </td>
    <td abbr="卡车">0567 DHL货车
</td>
  </tr>
</table>
测试看看 ‹/›

浏览器兼容性

IEFirefoxOperaChromeSafari

abbr 属性在普通的 Web 浏览器中没有视觉效果,但可以通过屏幕阅读器使用。

定义和用法

HTML5 不支持 <td> abbr 属性。

abbr 属性指定单元格中内容的缩写版本。

语法

<td abbr="text">

属性值

描述
text单元格内容的简短描述。
 HTML <td> 标签

HTML: <textarea> wrap 属性 HTML td colspan 属性