acronym Element


 

Module

The acronym element is an inline element declared by the XHTML 1.1 Text Module (Inline Phrasal)

Elements in the Text Module are:
span | br (Inline Structural Support Module)
em | strong | q | cite | abbr | acronym | code | var | kbd | samp | dfn (Inline Phrasal Support Module)
div | p (Block Structural Support Module)
h1 - h6 | blockquote | pre | address (Block Phrasal Support Module)

Description

This element is used to indicate that the enclosed text is an acronym, i.e. a word formed from joining the first letter (or first few letters) of several words. There is much debate as to when to use the acronym element and when to use the more general but related abbr element.
Considering the strict definition of 'acronym' in the *Chambers Dictionary Online, I am of the opinion that acronym should only be used if the abbreviation is usually pronounced as a word - e.g. laser (Light Amplification by Stimulated Emission of Radiation) - rather than as a series of letters - e.g. GMT (Greenwich Mean Time) or RAF (Royal Air Force). In this latter case, the abbr element should be used instead. It is still common practice, however, to misuse acronym - especially since IE6 does not support the abbr element.

Example acronym code:

  1. <acronym title="Light Amplification by Stimulated Emission of Radiation">Laser</acronym>
  2. <acronym title="Radio Detection and Ranging">Radar</acronym>
  3. <acronym title="North Atlantic Treaty Organisation">NATO</acronym>

The title attribute can be used to give the full text represented by the acronym. These three examples render as:

  1. Laser
  2. Radar
  3. NATO

Often, a browser will render text within an acronym with some kind of line underneath, usually dotted, and will pop up a tooltip containing the full text when the mouse hovers over the element. No styles have been applied to the example acronym elements above so they are rendered using your browser's default behaviour. My version of Konqueror (3.5.4) automatically styles acronym as font-variant:small-caps (but does not place a line beneath the text).

See also the abbr element.

#REQUIRED Attributes

There are no #REQUIRED attributes on the acronym element.


Specific Attributes

There are no specific attributes declared on the acronym element.


Common Attributes

Common attributes of the acronym element are listed below:

From the Core Attribute Collection

class [ type NMTOKENS ]
One or more space separated classes
id [ type ID ]
A unique identifier for the element
style [ type CDATA ], from the Style Attribute Module (deprecated)
Element-specific styles
title [ type Text ]
For an acronym element, the full text corresponding to the acronym should be specified in the title attribute (in some user agents this may appear as a "tooltip" when the mouse hovers over the element)
xmlns [ type URI - #FIXED 'http://www.w3.org/1999/xhtml' ]
XML namespace

From the I18N Attribute Collection

dir [ type Enumeration (ltr | rtl) ], from the Bi-directional Text Module
Left-to-right or right-to-left directionality
xml:lang [ type LanguageCode ]
A language code for the element

From the Events Attribute Collection

All attributes in the Events Attribute Collection are supported:
onclick, ondblclick, onmousedown, onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown, onkeyup


Content Model

The Content Model for the acronym element is:

( #PCDATA | Inline.mix )*

See Content Model & Nesting for information about Content Model syntax and Nesting Groups.

Valid children of acronym

Valid parents of acronym


Page Footer & Copyright

Copyright © Sally Maughan 2005-2009 (Page last updated on 01 Oct 2009)

*Valid XHTML 1.1 - hosted by *Openstrike

Content based on the W3C Working Draft: *XHTML 1.1 and Recommendation: *XHTML Modularisation 1.1.

W3C, XHTML, XML, HTML, CSS and MathML are *Trademarks of the W3C (*MIT, *ERCIM, *Keio) with which the site's author has no connection.


Up, Next & Previous Links

Your Location

Home > XHTML 1.1 Home > XHTML 1.1 Indexes > Element Index (XHTML 1.1) > acronym Element