How to use the <acronym> element in HTML

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.

New on Educative
Learn to Code
Learn any Language as a beginner
Develop a human edge in an AI powered world and learn to code with AI from our beginner friendly catalog
🏆 Leaderboard
Daily Coding Challenge
Solve a new coding challenge every day and climb the leaderboard

Free Resources