Easy Tutorial
❮ Prop Month Disabled Met Win Confirm ❯

TableHeader abbr Attribute

TableHeader Object

Example

Returns the value of the abbr attribute for the <th> element with id "myTh":

x Output result:


Definition and Usage

The abbr attribute 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 attribute is set, users will only hear the value of the abbr attribute (instead of the entire cell content).


Browser Support

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


Syntax

Return the abbr attribute:

Set the abbr attribute:

Attribute Values

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

Technical Details

| Return Value: | String, representing the abbreviation text. | | --- | --- |


Related Articles

HTML Reference: HTML <th> abbr Attribute


TableHeader Object

❮ Prop Month Disabled Met Win Confirm ❯