Attribut HTML <th> abbr
Exemple
Utilisation de l'attribut abbr dans un tableau HTML :
<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>
Définition et utilisation
L' abbr
attribut spécifie une version plus courte du contenu dans une cellule d'en-tête.
Remarque : L' abbr
attribut n'a aucun effet visuel dans les navigateurs Web ordinaires, mais peut être utilisé par les lecteurs d'écran.
Prise en charge du navigateur
Attribute | |||||
---|---|---|---|---|---|
abbr | Yes | Yes | Yes | Yes | Yes |
Syntaxe
<th abbr="text">
Valeurs d'attribut
Value | Description |
---|---|
text | A short description of the header cell content |
❮ Balise HTML <th>