HTML <abbr> Abbreviation Tag
Tags: learnhtml
Published: 2021-02-08 11:40:52

---
title: HTML <abbr> Abbreviation Tag
published: true
date: 2021-02-08 11:35:24 UTC
tags: LearnHTML
canonical_url: https://sharepointanchor.com/learn-html/html-abbreviation-tag/
---

<svg aria-hidden="true" focusable="false" data-icon="clock" width="20" height="20" fill="none" stroke="currentColor" style="display:inline-block;vertical-align:-0.1em" role="img" xmlns="http://www.w3.org/2000/svg" viewbox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"></path></svg>Estimated reading time: 3 minutes

The **<abbr title="Abbreviation">&lt;abbr&gt;</abbr>** tag is used to define the **abbreviation of a longer word** or acronyms of an element. The content written between **<abbr>** tags **displays with a dotted underline** in some browsers.

It contains both the **start tag** and the **end tag**. This tag can be used with the **“title”** attribute (optional). This tag displayed the **pop-up text prompt** when hovering the mouse over the abbreviation.

## Syntax:

The <abbr> tag always comes in pairs. The content is written between **opening tag<abbr>** and **closing tag </abbr>**. It should contain a full **human-readable description** or expansion of the abbreviation.

```

<abbr title="Full form of the abbreviation"> Short form </abbr>

```

The **attribute (title)** helps to specify extra information about the element.

## Sample of the HTML <abbr> Tag:

```

<!DOCTYPE html>
<html>
  <head>
    <title>HTML abbreviation Tag</title>
  </head>
  <body>
    <h2>Abbreviation of HTML</h2>
        <p><abbr title="HyperText Markup language">HTML</abbr> - It is a markup language.</p>
  </body>
</html>

```

## Result:

![](https://eadn-wc04-3430828.nxedge.io/cdn/wp-content/uploads/2021/02/Abbreviation.png)<figcaption>Abbreviation tag</figcaption>

## <abbr> Tag Styling Methods:

The <abbr> tag supports the **global attributes** and the **event attributes**. You can use the following properties to style an abbreviation tag.

### Properties to style the visual weight/emphasis/size of the text in <abbr> tag:

- **[CSS](https://sharepointanchor.com/category/learn-css/ "CSS") font-style** – This CSS property helps to set the font style of the text such as normal, italic, oblique, initial, inherit.
- **CSS font-family** – This CSS property specifies a prioritized list of one or more font family names or generic family names for the selected element.
- **CSS font-size** – This CSS property will help to set the size of the font.
- **CSS font-weight** – This CSS property used to define whether the font should be bold or thick.
- **CSS text-transform** – This CSS property will control the text case and capitalization.
- **CSS test-decoration** – This CSS property specifies the decoration added to text such as **text-decoration-line** , **text-decoration-color** , **text-decoration- style**.

### Styles to coloring the text in <abbr> Tag:

- **CSS color** – This CSS property will specify the color of the text content and decorations.
- **CSS background-color** – This CSS property helps to set the background color of an element.

### Text layout styles for <abbr> Tag:

- **CSS text-indent** – This CSS property is used to specify the indentation of the first line in a text block.
- **CSS text-overflow ** – This CSS property helps to describe how overflowed content that is not displayed should be signaled to the user.
- **CSS white-space** – This CSS property describes how white-space inside an element is handled.
- **CSS word-break**  – This CSS property decides where the lines should be broken.

### Other Properties for <abbr> Tag:

- **CSS text-shadow**  – This CSS property helps to add the shadow to text.
- **CSS text-align-last**  – This CSS property will set the alignment of the last line of the text.
- **CSS line-height** – This CSS property defines the height of a line.
- **CSS letter-spacing** – This CSS property helps to decide the spaces between letters/characters in a text.
- **CSS word-spacing** – This CSS property specifies the spacing between every word.

## Browser Support:

![](https://eadn-wc04-3430828.nxedge.io/cdn/wp-content/uploads/2021/02/Browser-Support-3.png)<figcaption>Browser Support</figcaption>

## Frequently Asked Questions:

**What is the purpose of using <abbr> tag in [HTML](https://sharepointanchor.com/category/learn-html/ "HTML") ?** 

It is used to display the **full form** of **short-form** in words. For example, **[HTML](https://sharepointanchor.com/category/learn-html/ "HTML") – HyperText Markup Language**.   
  
 ![Abbreviation](https://eadn-wc04-3430828.nxedge.io/cdn/wp-content/uploads/2021/02/Abbreviation.png)

 
 
**What is the basic syntax of ABBR tag in HTML ?** 

The basic syntax of ABBR tag is **<abbr title=”fullform”> shortform </abbr>**

 
 
**Will it work on Chrome Browser ?** 

**Yes** it will work on latest version of Chrome Browser.

 
 

The post [HTML <code><abbr></code> Abbreviation Tag](https://sharepointanchor.com/learn-html/html-abbreviation-tag/) appeared first on [Share Point Anchor](https://sharepointanchor.com).