HTML <abbr> Tag
Example
<p>The first version of <abbr title="Hypertext Markup Language">HTML</abbr> was written by Tim Berners-Lee in 1993.</p>
Meaning
The <abbr> This element allows to clearly indicate a sequence of characters that defines an abbreviation for a word (such as HTML, CSS, PHP, Mr. instead of Mister etc...).
Notes:
- The title attribute should be set to the expansion of the abbreviation.
- When the title attribute is set on this element, browsers may render a dotted underline.
Version: HTML 4, 4.01, 5
Standard Syntax
<abbr title="abbreviation">...</abbr>
Browser Support
Status
Attributes
Attribute | Value | Description |
---|---|---|
title | Abbreviation | Specifies advisory text(abbreviation) |
Global Attributes
<abbr> element also supports the Global Attributes in HTML.
Event Attributes
<abbr> element also supports the Event Attributes in HTML.
More Examples
<abbr> tag can also be used with <dfn> tag to define an abbreviation
Example
<p><dfn><abbr title="Cascading Style Sheets">CSS</abbr></dfn> was first proposed by HÃ¥kon Wium Lie on October 10, 1994.</p>
By Default CSS Value(s)
Most of the browsers will display the <abbr> element with the following by default value(s)
abbr {
display: inline;
}