X
HOME HTML CSS JAVASCRIPT SQL PHP JQUERY XML ASP.NET MORE...
REFERENCES | EXAMPLES | FORUM | ABOUT

TableHeader abbr Property

TableHeader Object Reference TableHeader Object

Example

Return the value of the abbr attribute of a <th> element with id "myTh":

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

The result of x will be:

Make

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).


Browser Support

Internet Explorer Firefox Opera Google Chrome Safari

The abbr property is supported in all major browsers. However, the functionality of this property is not implemented in any of the major browsers.


Syntax

Return the abbr property:

tableheaderObject.abbr

Set the abbr property:

tableheaderObject.abbr=text

Property Values

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

Technical Details

Return Value: A String, representing the abbreviated text


Related Pages

HTML reference: HTML <th> abbr attribute


TableHeader Object Reference TableHeader Object

Your suggestion:

Close [X]

Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]
Search w3schools.com:

WEB BUILDING

Download XML Editor FREE Website BUILDER Free HTML5 Templates FREE Website Templates Free HTML Templates

SHARE THIS PAGE

facebook