YouTip LogoYouTip

Prop Tableheader Abbr

HTML DOM TableHeader abbr Property

HTML DOM TableHeader abbr Property

HTML DOM TableHeader abbr Property

-- Learning is not just about technology, but also about dreams!

JavaScript Reference Manual

Overview

JavaScript Objects

JavaScript Array Object JavaScript Boolean Object JavaScript Date Object JavaScript Math Object JavaScript Number Object JavaScript String Object JavaScript RegExp Object JavaScript Global Properties/Functions JavaScript Operators JavaScript Error

Browser Objects

Window Object Navigator Object Screen Object History Object Location Object Storage Object

DOM Objects

HTML DOM Document Object HTML DOM Element Object HTML DOM Attribute Object HTML DOM Event Object HTML DOM Console Object CSSStyleDeclaration Object DOM HTMLCollection

HTML Objects

<a> <area> <audio> <base> <blockquote> <body> <button> <canvas> <col> <colgroup> <datalist> <del> <details> <dialog> <embed> <fieldset> <form> <iframe> <frameset > <img> <ins> <input> - button <input> - checkbox <input> - color <input> - date <input> - datetime <input> - datetime-local <input> - email <input> - file <input> - hidden <input> - image <input> - month <input> - number <input> - range <input> - password <input> - radio <input> - reset <input> - search <input> - submit <input> - text <input> - time <input> - url <input> - week <keygen> <link> <label> <legend> <li> <map> <menu> <menuItem> <meta> <meter> <object> <ol> <optgroup> <option> <param> <progress> <q> <script> <select> <source> <style> <table> <td> <th> <tr> <textarea> <title> <time> <track> <video>

HTML DOM td / th Object

HTML DOM tr Object

Deep Dive

Computer Science

Scripting Languages

Scripts

Programming

Development Tools

Web Services

Web Design and Development

Web Service

Programming Languages

Software

TableHeader abbr Property

Image 8: TableHeader Object Reference Manual TableHeader Object

Example

Get the value of the abbr attribute of the <th> element with id="myTh":

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

document.getElementById("demo").innerHTML=x;

x output result is:

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


Browser Support

Image 9: Internet ExplorerImage 10: FirefoxImage 11: OperaImage 12: Google ChromeImage 13: Safari

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


Syntax

Get the abbr attribute:

tableheaderObject.abbr

Set the abbr attribute:

tableheaderObject.abbr=text

Property Values

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

Technical Details

Return Value: A string, representing the abbreviated text.

Related Articles

HTML Reference Manual: HTML <th> abbr Attribute


Image 14: TableHeader Object Reference Manual TableHeader Object

← Prop Tableheader CellindexDom Obj Tableheader β†’