HTML th abbr attribute
Examples
Using the abbr attribute in an HTML table:
<table border="1">
<tr>
<th abbr="Make">Toy manufacturer</th>
<th abbr="Model">Vehicle model</th>
</tr>
<tr>
<td>Bruder Toys</td>
<td>Cross Country Vehicle</td>
</tr>
<tr>
<td>Bruder Toys</td>
<td>DHL Lorry</td>
</tr>
</table>
<tr>
<th abbr="Make">Toy manufacturer</th>
<th abbr="Model">Vehicle model</th>
</tr>
<tr>
<td>Bruder Toys</td>
<td>Cross Country Vehicle</td>
</tr>
<tr>
<td>Bruder Toys</td>
<td>DHL Lorry</td>
</tr>
</table>
try it"
Browser Support
abbr attribute no visual effects in an ordinary Web browser, but you can use screen readers.
Definition and Usage
HTML5 does not support the <th> abbr attribute.
abbr attribute specifies an abbreviated version of the header cell content.
grammar
<th abbr="text">
Property Value
值 | 描述 |
---|---|
text | 表头单元格内容的短描述。 |
HTML <th> tag