HTML th attribut abbr
Exemples
Utilisation de l'attribut abbr dans un tableau HTML:
<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>
Essayez »
support du navigateur
attribut abbr pas d'effets visuels dans un navigateur Web ordinaire, mais vous pouvez utiliser les lecteurs d'écran.
Définition et utilisation
HTML5 ne supporte pas le <th> abbr attribut.
abbr attribut spécifie une version abrégée du contenu en-tête de la cellule.
grammaire
<th abbr="text">
Valeur de la propriété
值 | 描述 |
---|---|
text | 表头单元格内容的短描述。 |
HTML <th> tag