HTML XHTML The Complete Reference
home » reference » appendix a » html element reference

<abbr> (Abbreviation)


This element allows authors to clearly indicate a sequence of characters that define an abbreviation for a word (such as Mr. instead of Mister, Calif instead of California).

Standard Syntax


<abbr
class="class name(s)"
dir="ltr | rtl"
id="unique alphanumeric identifier"
lang="language code"
style="style information"
title="advisory text"
</abbr>

Standard Events


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

Examples


<abbr title="California abbreviated">Calif</abbr>

Isn't <abbr>WWW</abbr> an acronym? Are you sure?

Compatibility


HTML 4, 4.01, XHTML 1.0, 1.1, Basic
Netscape 6, 7
Opera 6, 7

Notes


This tag is commonly confused with <acronym>. Debate about just what constitutes an acronym as compared with an abbreviation is common amongst very detail-oriented Web standards experts. In reality,Web developers appear to use the <acronym> tag more often than the <abbr> tag.

With the title attribute set on this element, Opera and Mozilla may render a dotted underline useful to suggest the Tooltip that might contain a definition for the word.

Because there is typically no markup-oriented presentation for this element, it is primarily used in conjunction with style sheets and scripts.

(X)HTML Elements
CSS Properties
Previous: a Next: acronym
< Home | About | Chapters | Examples | Errata | Reference | Site Map >