TableHeader abbr Property

❮ TableHeader Object

Example

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

var x = document.getElementById("myTh").abbr;
Try it Yourself »

Description

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

Property
abbr Yes Yes Yes Yes Yes


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
Copyright 1999-2023 by Refsnes Data. All Rights Reserved.