Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML DOM TableHeader abbr property

TableHeader abbr property

TableHeader Object Reference The TableHeader object

Example

Return the value of the abbr property of the element with id "myTh":

var x = document.getElementById("myTh").abbr;

document.getElementById("demo").innerHTML=x;

x The output is:

Make

Try it »


Definition and Usage

The abbr property sets or returns the value of the abbr property.

The abbr property specifies an abbreviated version of the content in the data cell (used for non-visual media, such as speech or braille).

If this property is set, the user will only hear the value of the abbr property (instead of the entire cell content).


Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support the abbr property. However, the functionality of this property is not implemented in any major browser.


Syntax

Return the abbr property:

tableheaderObject

.abbr

Set the abbr property:

tableheaderObject

.abbr=

text

Attribute values

Value Description
text Specifies a short description of the header cell content.

Technical Details

Return Value: String, representing the abbreviated text.

Related Articles

HTML Reference Manual:HTML abbr property


TableHeader Object Reference The TableHeader object