HTML abbr attribute
HTML abbr attribute defines the alternative text for the header cell in th element. This text may be in short or expanded form.
<table border="1">
<tr> <th abbr="mo">Month</th> <th abbr="exp">Expenses</th> </tr>
<tr> <td>January</td> <td>$30000</td> </tr>
<tr> <td>Febuary</td> <td>$40000</td> </tr>
<tr> <td>March</td> <td>$25000</td> </tr>
<tr> <td>Total</td> <td>155000</td> </tr>
</table>
</>
Month | Expenses |
---|---|
January | $30000 |
Febuary | $40000 |
March | $25000 |
Total | 155000 |
Attribute values
All possible values of abbr attributeThe value of abbr attribute is simple text.
Related Tags
The tags that abbr attribute<th> tag
-
th tag defines a data cell for the heading section in a table. It supports abbr attribute.
-
<p>Upload Video: <input type="file" accept="video/*"><p>
Try</>
Was this article helpful?