HTML abbr Tag
HTML

HTML abbr Tag

Editorial Team
Editorial Team

Follow us on Discord or Telegram to get access to free tutorials and updates.

The abbr tag is used to define an abbreviation.  An optional title attribute can be used to specify the expansion for the abbreviation. The text specified in the title tag is often displayed as a tooltip by the browsers when you hover over the element.

Syntax

<abbr title="title">Short text</abbr>

Example

<!DOCTYPE html>
<html>
<head>
	<title>HTML abbr tag</title>
</head>
<body>
    <p>
    	<abbr title="Hyper Text Markup Language">HTML</abbr> is easy to learn.
    </p>
</body>
</html>

Output

HTML is easy to learn.

The <acronym> tag is similar to <abbr> tag. HTML 5 does not support <acronym> tag.