Trusted answers to developer questions
Trusted Answers to Developer Questions

Related Tags

html
communitycreator

How to use the <acronym> element in HTML

AKASH BAJWA

In HTMLhypertext markup language, the <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.

Syntax

<acronym title="English Capital Letters">ABC</acronym>

Code

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.

RELATED TAGS

html
communitycreator
RELATED COURSES

View all Courses

Keep Exploring