th abbr Property
Return the value of the abbr attribute of a <th> element with id "myTh":
The result of x will be:
Try it yourself »
Definition and Usage
The abbr property sets or returns the value of the abbr attribute.
The abbr attribute specifies an abbreviated version of the content in a data cell (for non-visual media such as speech or Braille).
If this property is set, the user will only hear the value of the abbr attribute (not the whole content of the cell).
The abbr property is supported in all major browsers. However, the functionality of this property is not implemented in any of the major browsers.
Return the abbr property:
Set the abbr property:
Tip: There is no default value for the abbr property.
|text||Specifies a short description of the header cell content|
|String||The abbreviated text|
Thank You For Helping Us!
Your message has been sent to W3Schools.