The <abbr>
represents an abbreviation and optionally provides a full description for it. If present, the title
attribute must contain this full description and nothing else.
Content categories | Flow content, phrasing content, palpable content |
---|---|
Permitted content | Phrasing content |
Tag omission | None, both the starting and ending tag are mandatory. |
Permitted parents | Any element that accepts phrasing content |
Permitted ARIA roles | Any |
DOM Interface | HTMLElement |
This element only includes the global attributes.
Use the title
attribute to define the full description of the abbreviation. Many user agents present this as a tooltip.
Note: In languages with grammatical number (especially languages with more than two numbers, like Arabic), use the same grammatical number in your title
attribute as inside your <abbr>
element.
<abbr title="Laugh Out Loud">LOL</abbr>
<abbr title="Internationalization">I18N</abbr>
See more in-depth examples in the How to mark abbreviations and make them understandable article.
The purpose of this element is purely for the convenience of the author and all browsers display it inline (display
: inline
) by default, though its default styling varies from one browser to another:
<span>
element.font-variant
: none
in the CSS takes care of this case.Specification | Status | Comment |
---|---|---|
HTML Living Standard The definition of '<abbr>' in that specification. | Living Standard | |
HTML5 The definition of '<abbr>' in that specification. | Recommendation | |
HTML 4.01 Specification The definition of '<abbr>' in that specification. | Recommendation |
Feature | Chrome | Edge | Firefox | Internet Explorer | Opera | Safari |
---|---|---|---|---|---|---|
Basic support | 2 | Yes | 11 | 7 | Yes | Yes |
Feature | Android webview | Chrome for Android | Edge mobile | Firefox for Android | IE mobile | Opera Android | iOS Safari |
---|---|---|---|---|---|---|---|
Basic support | Yes | Yes | Yes | 4 | Yes | Yes | Yes |
1. Before Firefox 4, this element implemented the HTMLSpanElement
interface instead of the standard HTMLElement
interface.
<a>
, <em>
, <strong>
, <small>
, <cite>
, <q>
, <dfn>
, <time>
, <code>
, <var>
, <samp>
, <kbd>
, <sub>
, <sup>
, <b>
, <i>
, <mark>
, <ruby>
, <rp>
, <rt>
, <bdo>
, <span>
, <br>
, <wbr>
.
© 2005–2018 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/abbr