HTML - <acronym> Tag



The HTML <acronym> tag is used to define an acronym, providing an additional information about its meaning or abbreviation. It allows to specify the full description of the acronym using the title attribute, that is displayed as a tooltip when the user hover over the acronym for user understanding.

This tag is no longer recommended as it is deprecated and replaced by the <abbr>tag for abbreviations and acronyms.

Syntax

Following is the syntax of HTML <acronym> tag −.

<acronym title="Tutorialspoint">TP</acronym>  

Attributes

HTML acronym tag supports Global and Event attributes of HTML.

Example : Basic Acronym Definition

Let's look at the following example, where we are going to consider the basic usage of the <acronym> tag.

<!DOCTYPE html>
<html>
<body>
    <p><acronym title="HyperText Markup Language">HTML</acronym></p>
</body>
</html>

Example : Acronym with CSS

Considering the following example, where we are going to use the <acronym> tag and applying the CSS properties to it.

<!DOCTYPE html>
<html>
<style>
    acronym {
        font-variant: all-small-caps;
        background-color: yellow;
    }
</style>
<body>
    <p>
        Using <acronym title="HyperText Markup Language">HTML</acronym> is fun and easy!
    </p>
    <p>
        <acronym title="Tutorialspoint">TP</acronym> Easy to learn!
    </p>
</body>
</html>

Supported Browsers

Tag Chrome Edge Firefox Safari Opera
acronym Yes Yes Yes Yes Yes
html_tags_reference.htm
Advertisements