In <acronym>
tag defines an abbreviation or acronym. Whenever you hover the mouse over an abbreviation, it displays a pop-up text prompt.
Another tag, <abbr>
, is also used in the same context in the latest HTML version, HTML5.
The
<acronym>
element is supported in HTML 4, but not HTML 5. In HTML 5, you can use<abbr>
instead.
<acronym title="English Capital Letters">ABC</acronym>
The following code demonstrates the usage of the <acronym>
element in HTML. We add the optional title attribute to describe the abbreviation in line nine in the OPENING acronym tag.
The abbreviation we want to display is written between the opening <acronym>
and closing </acronym>
tags.