THE WORLD'S LARGEST WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

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;

The result of x could be:

Make
Try it yourself »

Definition and Usage

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

The abbr attribute specifies a shorter version of the content in a header cell.

Note: The abbr attribute has no visual effect in ordinary web browsers, but can be used by screen readers.


Browser Support

Internet Explorer Firefox Opera Google Chrome Safari

The abbr property is supported in all 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 a short description of the header cell content

More Examples

Example

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

document.getElementById("myTh").abbr = "newValue";
Try it yourself »

Related Pages

HTML reference: HTML <th> abbr attribute


TableHeader Object Reference TableHeader Object