HTML th abbr attribute

Example

Use of 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>


Definition and Usage

The abbr attribute specifies a shorter version of the content in a header cell.
The abbr attribute makes no visual difference in ordinary web browsers.
This attribute can be used by screen readers.

Browser Support


Since there is no visual difference in ordinary web browsers, it’s difficult to say whether or not they support the abbr attribute.

Syntax

<th abbr="value">

Attribute Values

Value Description
text A short description of a header cell
Share this article :
 
Copyright © 2012. Best Online Tutorials | Source codes | Programming Languages - All Rights Reserved