<acronym>

The HTML <acronym> element, once used for defining acronyms with an optional title attribute, is now obsolete and replaced by `<abbr>` for both acronyms and abbreviations.

<acronym> Tag

The <acronym> element was historically used to define acronyms, often with a title attribute to provide additional information. However, it is now obsolete and has been replaced by <abbr>, which serves the same purpose for both acronyms and abbreviations.

Syntax

index.html
<acronym title="Full Form">Acronym</acronym>

acronym Demo

The WWW is only a component of the Internet.

index.html
<p>
  The <acronym title="World Wide Web">WWW</acronym> is only a component of the
  Internet.
</p>

Default Styling

The <abbr> element replaces <acronym>, and while it does not enforce a default appearance, browsers such as Opera, Firefox, and Chrome typically apply a dotted underline to its content.

Some browsers also render the text in small caps. To prevent this, you can use font-variant: normal; in your CSS.
  • Web authors are advised to explicitly style the <abbr> element or accept variations in browser rendering.

See Also

Learn more about the <abbr> element.

Conclusion

The <acronym> element is deprecated in HTML5 and should no longer be used. Instead, the <abbr> element, along with the optional title attribute, provides a more standardized approach for displaying abbreviations and acronyms.

Browsers may apply default styling, such as dotted underlines or small caps, but these can be customized using CSS as needed.