mozilla

Revision 500355 of <acronym>

  • Revision slug: Web/HTML/Element/acronym
  • Revision title: <acronym>
  • Revision id: 500355
  • Created:
  • Creator: Tyriar
  • Is current revision? No
  • Comment Removed HTMLRef macro (to prevent visible error)

Revision Content

{{obsolete_header}}

Summary

The HTML Acronym Element (<acronym>) allows authors to clearly indicate a sequence of characters that compose an acronym or abbreviation for a word.

Usage note: This element has been removed in HTML5 and shouldn't be used anymore. Instead web developers should use the {{HTMLElement("abbr")}} element.

Attributes

This element has no other attributes than the global attributes, common to all elements.

DOM Interface

This element implements the {{domxref('HTMLElement')}} interface.

Implementation note: Up to Gecko 1.9.2 inclusive, Firefox implements the {{domxref('HTMLSpanElement')}} interface for this element.

Example

<p>The <acronym title="World Wide Web">WWW</acronym> is only one component of the Internet.</p>

Default styling

Though the purpose of this tag is purely for the convenience of the author, its default styling varies from one browser to another:

  • Some browsers, like Internet Explorer, do not style it differently than a {{HTMLElement("span")}} element.
  • Opera, Firefox, and some others add a dotted underline to the content of the element.
  • A few browsers not only add a dotted underline, but also put it in small caps; to avoid this styling, adding something like {{cssxref('font-variant')}}: none in the CSS take cares of this case.

It is therefore strongly recommended that web authors do not rely on the default styling.

Specifications

Specification Status Comment
{{SpecName('HTML4.01', 'struct/text.html#edef-ACRONYM', '<acronym>')}} {{Spec2('HTML4.01')}}  

Browser compatibility

{{CompatibilityTable}}

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
Basic support {{CompatVersionUnknown}} {{CompatVersionUnknown}} {{CompatVersionUnknown}} {{CompatVersionUnknown}} {{CompatVersionUnknown}}
Feature Android Firefox Mobile (Gecko) IE Phone Opera Mobile Safari Mobile
Basic support {{CompatNo}} {{CompatUnknown}} {{CompatUnknown}} {{CompatUnknown}} {{CompatNo}}

See also

  • The {{HTMLElement("abbr")}} HTML element

Revision Source

<div>
 {{obsolete_header}}</div>
<h2 id="Summary" name="Summary">Summary</h2>
<p>The HTML Acronym Element (<code>&lt;acronym&gt;)</code> allows authors to clearly indicate a sequence of characters that compose an acronym or abbreviation for a word.</p>
<div class="note">
 <p><strong>Usage note: </strong>This element has been removed in HTML5 and shouldn't be used anymore. Instead web developers should use the {{HTMLElement("abbr")}} element.</p>
</div>
<h2 id="Attributes" name="Attributes">Attributes</h2>
<p>This element has no other attributes than the <a class="new " href="/en-US/docs/HTML/global_attributes" rel="internal" title="HTML/global attributes">global attributes</a>, common to all elements.</p>
<h2 id="DOM_Interface" name="DOM_Interface">DOM Interface</h2>
<p>This element implements the {{domxref('HTMLElement')}} interface.</p>
<div class="note">
 <strong>Implementation note: </strong>Up to Gecko 1.9.2 inclusive, Firefox implements the {{domxref('HTMLSpanElement')}} interface for this element.</div>
<h2 id="Example" name="Example">Example</h2>
<pre class="brush:html">
&lt;p&gt;The &lt;acronym title="World Wide Web"&gt;WWW&lt;/acronym&gt; is only one component of the Internet.&lt;/p&gt;
</pre>
<h2 id="Default_styling" name="Default_styling">Default styling</h2>
<p>Though the purpose of this tag is purely for the convenience of the author, its default styling varies from one browser to another:</p>
<ul>
 <li>Some browsers, like Internet Explorer, do not style it differently than a {{HTMLElement("span")}} element.</li>
 <li>Opera, Firefox, and some others add a dotted underline to the content of the element.</li>
 <li>A few browsers not only add a dotted underline, but also put it in small caps; to avoid this styling, adding something like {{cssxref('font-variant')}}<code>: none</code> in the CSS take cares of this case.</li>
</ul>
<p>It is therefore strongly recommended that web authors do not rely on the default styling.</p>
<h2 id="Specifications" name="Specifications">Specifications</h2>
<table class="standard-table">
 <thead>
  <tr>
   <th scope="col">Specification</th>
   <th scope="col">Status</th>
   <th scope="col">Comment</th>
  </tr>
 </thead>
 <tbody>
  <tr>
   <td>{{SpecName('HTML4.01', 'struct/text.html#edef-ACRONYM', '&lt;acronym&gt;')}}</td>
   <td>{{Spec2('HTML4.01')}}</td>
   <td>&nbsp;</td>
  </tr>
 </tbody>
</table>
<h2 id="Browser_compatibility" name="Browser_compatibility">Browser compatibility</h2>
<p>{{CompatibilityTable}}</p>
<div id="compat-desktop">
 <table class="compat-table">
  <tbody>
   <tr>
    <th>Feature</th>
    <th>Chrome</th>
    <th>Firefox (Gecko)</th>
    <th>Internet Explorer</th>
    <th>Opera</th>
    <th>Safari (WebKit)</th>
   </tr>
   <tr>
    <td>Basic support</td>
    <td>{{CompatVersionUnknown}}</td>
    <td>{{CompatVersionUnknown}}</td>
    <td>{{CompatVersionUnknown}}</td>
    <td>{{CompatVersionUnknown}}</td>
    <td>{{CompatVersionUnknown}}</td>
   </tr>
  </tbody>
 </table>
</div>
<div id="compat-mobile">
 <table class="compat-table">
  <tbody>
   <tr>
    <th>Feature</th>
    <th>Android</th>
    <th>Firefox Mobile (Gecko)</th>
    <th>IE Phone</th>
    <th>Opera Mobile</th>
    <th>Safari Mobile</th>
   </tr>
   <tr>
    <td>Basic support</td>
    <td>{{CompatNo}}</td>
    <td>{{CompatUnknown}}</td>
    <td>{{CompatUnknown}}</td>
    <td>{{CompatUnknown}}</td>
    <td>{{CompatNo}}</td>
   </tr>
  </tbody>
 </table>
</div>
<h2 id="See_also" name="See_also">See also</h2>
<ul>
 <li>The {{HTMLElement("abbr")}} HTML element</li>
</ul>
Revert to this revision