HTML <abbr>
Tag
Topic: HTML5 Tags ReferencePrev|Next
Description
The <abbr>
tag defines an abbreviated form of a longer word or phrase.
The following table summarizes the usages context and the version history of this tag.
Placement: | Inline |
---|---|
Content: | Inline and text |
Start/End Tag: | Start tag: required, End tag: required |
Version: | HTML 4, 4.01, 5 |
Syntax
The basic syntax of the <abbr>
tag is given with:
Note: The title
attribute is used inside the <abbr>
tag to provide an expanded form of the abbreviation, when the user mouse over it.
The example below shows the <abbr>
tag in action.
Example
Try this code »<p>The <abbr title="Hyper Text Markup Language">HTML</abbr> is the publishing language of the World Wide Web.</p>
Tag-Specific Attributes
The <abbr>
tag doesn't have any specific attribute.
Global Attributes
Like all other HTML tags, the <abbr>
tag supports the global attributes in HTML5.
Event Attributes
The <abbr>
tag also supports the event attributes in HTML5.
Browser Compatibility
The <abbr>
tag is supported in all major modern browsers.
Basic Support—
|
Further Reading
See tutorial on: HTML Text Formatting.
Related tag: <acronym>
.