HTML abbr attribute

abbr attribute defines the alternative text for the header cell in th element. This text may be in short or expanded form.

Example

<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>
Try </>

abbr attribute values

The value of abbr attribute is simple text.

Related Tags

The tags that support abbr attribute are as follows.

<th> tag

th tag defines a data cell for the heading section in a table. It supports abbr attribute.


Was this article helpful?

 

Email:

Message:

Get the newsletter