HTML-tags-abbr tag

Revision:


Content

"abbr' tag : defines an abbreviation or acronym syntax some examples


"abbr' tag : defines an abbreviation or acronym

top

The<abbr> tag defines an abbreviation or an acronym, like "HTML", "CSS", "Mr.", "Dr.", "ASAP", "ATM".

Attributes: the <abbr> element support the global attributes and event attributes.

Use the global title attribute to show the description for the abbreviation/acronym when you mouse over the element.

It is not necessarily a requirement to use the <abbr> when presenting an abbreviation. It is simply a tag that can be useful in many cases when doing so (for example, using the title attribute to expand on the abbreviation, or using style sheets to apply to the <abbr> element).


Syntax

top

<abbr title=" "> . . . </abbr>


some examples

top

The WHO was founded in 1948.

Code:

                    <p>The <abbr title="World Health Organization">WHO</abbr> was founded in 1948.</p>
                

CSS is a language that describes the style of an HTML document.

Code:

                    <p><dfn><abbr title="Cascading Style Sheets">CSS</abbr>
                    </dfn> is a language that describes the style of an HTML document.</p>
                

example

There are many PMRs

Code:

                    <p>There are many <abbr title="Physical Matter Realities">PMRs</abbr></p>