Dofactory.com
Dofactory.com

HTML <abbr> title Attribute

The title attribute on an <abbr> tag describes what the abbreviation or acronym stands for.

Hovering the mouse over the button will display the tooltip with description.

Example

#

A title attribute on an <abbr> tag.
Hover over the word 'CSS' to see the description (i.e. expansion).

We use CSS to design our web pages.
<div>
  We use <abbr title="Cascading Style Sheets">CSS</abbr> 
  to design our web pages.
</div>

Using title

The title attribute specifies the explanation or expansion of the <abbr> element.

Its value is displayed as a tooltip when the cursor hovers over the abbreviation.


Syntax

<abbr title="text">

Values

#

Value Description
text String value with the description or explanation of the abbreviation or acronym.

Browser support

Here is when title support started for each browser:

Chrome
1.0 Sep 2008
Firefox
1.0 Sep 2002
IE/Edge
1.0 Aug 1995
Opera
1.0 Jan 2006
Safari
1.0 Jan 2003

You may also like

 Back to <abbr>

Author: Jack Poorte
Published: Jun 20 2021
Last Reviewed: Sep 30 2023


Quick question: what's your favorite/least favorite part of Dofactory?


Guides