A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://www.geeksforgeeks.org/html/html-abbr-tag/ below:

HTML abbr Tag - GeeksforGeeks

HTML abbr Tag

Last Updated : 11 Jul, 2025

The <abbr> tag in HTML is used to represent abbreviations and provides additional information about them through the title attribute, which displays a tooltip when hovered over. It helps improve accessibility and SEO by offering context for the abbreviated text.

Syntax:
<abbr title=""> Short form </abbr>
HTML
<!DOCTYPE html>
<html>
<body>
    <p>
        <!-- HTML abbr tag is used here -->
        <abbr title="GeeksforGeeks">GFG</abbr>: A computer science portal for geeks.
    </p>
</body>
</html>

Examples of HTML abbr Tag:

Abbr Tag for Representing HTML HTML
<!DOCTYPE html>
<html>
<body>
    <h2>HTML abbr Tag</h2>
    <p>
        <abbr title="Hyper Text Markup Language">HTML</abbr> 
        is used to create the structure of a web page.
    </p>
</body>
</html>
Styling Abbr Tag HTML
<!DOCTYPE html>
<html lang="en">
<body>
    <style>
        abbr {
            color: #007BFF;
            font-weight: bold;
            font-size: 1.1em;
            border-bottom: 1px dashed #007BFF;
        }
        
        abbr:hover {
            text-decoration: none;
            color: #0056b3;
            cursor: pointer;
        }
    </style>
    <p>
        <abbr title="Cascading Style Sheets">CSS</abbr> 
        is used to style web pages.
    </p>
</body>
</html>
Best Practices for Using the <abbr> Tag

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4