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

HTML DOM td/th abbr property

td/th abbr property

td/th Object Reference td/th object


Definition and Usage

The abbr property can set or return an abbreviated version of the content in a table cell (for non-visual media, such as speech and Braille).

If this property is set, the user can only hear the value of the abbr property (not the content of the cell).

Syntax

Set the abbr property:

tdObject.abbr="

text

"

or

thObject.abbr="

text

"

Return the abbr property:

tdObject.abbr

or

thObject.abbr

Tip: The abbr property has no default value.


Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support the abbr property.


Example

Example

The following example displays the abbr of the first cell:

Runoob Tutorial(runoob.com)

    

        

        

    

Keep the abbreviated names short, as the browser may display them repeatedly. Cell data
Cell data Cell data

Try it »


td/th Object Reference td/th object