Expand your HTML skills through an MDN Fellowship - Apply by April 1 http://mzl.la/MDNFellowship

mozilla

Revision 35244 of <abbr>

  • Revision slug: HTML/Element/abbr
  • Revision title: abbr
  • Revision id: 35244
  • Created:
  • Creator: teoli
  • Is current revision? No
  • Comment 32 words added, 6 words removed

Revision Content

The HTML Abbreviation Element (<abbr>) underlines an abbreviation and provides a full description on hover.

DOM Interface

This element implements the HTMLElement interface.

Implementation note: up to Gecko 1.9.2 included, Firefox implements the HTMLSpanElement interface for this element.

Example

   <p>
   
       Tony Blair is the prime minister of the <abbr title="United Kingdom">UK</abbr>
   
   </p>

Result

Image:Abbr.gif

Tony Blair is the prime minister of the UK

{{ HTML:Element_Navigation() }}

{{ languages( { "ja": "ja/HTML/Element/abbr", "pl": "pl/HTML/Element/abbr" } ) }}

Revision Source

<p>The HTML Abbreviation Element (<code>&lt;abbr&gt;</code>) underlines an abbreviation and provides a full description on hover.</p>
<h3 class="editable">DOM Interface</h3>
<p>This element implements the <code><a href="/en/DOM/element" title="en/DOM/element">HTMLElement</a></code> interface.</p>
<div class="note">
<p><strong>Implementation note: </strong>up to Gecko 1.9.2 included, Firefox implements the <a href="/en/DOM/span" title="en/DOM/span"><span style="font-family: Courier New;">HTMLSpanElement</span></a> interface for this element.</p>
</div>
<h3 name="Example">Example</h3>
<pre class="eval">   &lt;p&gt;
   
       Tony Blair is the prime minister of the &lt;abbr title="United Kingdom"&gt;UK&lt;/abbr&gt;
   
   &lt;/p&gt;
</pre>
<h4 name="Result">Result</h4>
<p><img alt="Image:Abbr.gif" class=" internal" src="/@api/deki/files/17/=Abbr.gif"></p>
<p>Tony Blair is the prime minister of the <abbr title="United Kingdom">UK</abbr></p>
<p>{{ HTML:Element_Navigation() }}</p>
<p>{{ languages( { "ja": "ja/HTML/Element/abbr", "pl": "pl/HTML/Element/abbr" } ) }}</p>
Revert to this revision