HTML abbr

From Htmlpedia
Revision as of 20:08, 6 April 2007 by 64.203.165.125 (talk) (describes usage of the abbr tag)
(diff) ←Older revision | Current revision (diff) | Newer revision→ (diff)
Jump to: navigation, search

HTML Element ABBR

Definition and Usage

The <abbr> tag defines an abbreviated form (e.g., WWW, HTTP, URI, Mass., etc.). Do not confuse with an ACRONYM (e.g., WAC, radar, laser, etc.).

The <abbr> tag was not supported by Microsoft Internet Explorer until version 7 even though the tag has been in the HTML 4.01 specification since 1999. This meant that the <acronym> tag was exclusively used by developers for both abbreviations and acronyms unless workarounds were employed (such as Dean Edwards' <abbr-cadabra/> implementation).


Examples

<p><abbr title="World Wide Web">WWW</abbr></p>
<p><abbr lang="fr" title="Société Nationale des Chemins de Fer">SNCF</abbr></p>
Good

WWW

SNCF


Attributes

Optional attributes

None

Standard Attributes

id, class, title, style, dir, lang

Event Attributes

onclick, ondblclick, onmousedown, onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown, onkeyup


Tags in Tag

  • Fontstyle

TT, I, B, BIG, SMALL

  • Phrase

EM, STRONG, DFN, CODE, SAMP, KBD, VAR, CITE, ABBR, ACRONYM


References


Back to HTML Elements