Abbreviations and acronyms

The abbr element is used for abbreviations and acronyms in HTML. An acronym is composed of the first letter of each word in a group of words. An abbreviation is a shortened version of a sentence or word.

HTML is an example of this element in use. To create an abbreviation like this one, the title attribute is added to the opening abbr tag with the abbreviation’s definition as the value:

<abbr title="Hypertext markup language">HTML</abbr>

Please note that the title attribute is not required and it is important to define abbreviations before their use to make it easier for users to understand the text.

Sharing is caring!

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top