|
The example of abbr tag in HTML
<abbr title="HyperText Markup Language">HTML</abbr>
Working Example of abbr
BCCI is biggest cricket board in India
The HTML abbr tag is used for defining abbreviation in webpage. In any language we use abbreviation to make easy to use of the particular word. This abbreviation is used by big and small organization (Public, Private or Government). The organization use abbreviation because the name of word is too large to read and pronunciation.
HTML did not forget to add abbreviation tag. This abbr tag is used for abbreviation in HTML.
Abbr tag is supported by all web browsers except Internet Explorer version 6 and lower than IE 6 version.
Abbr tag work on mouse over and display title inside the tag. On mouse over it displays full text inside the title attribute.
Abbr tag support all common attribute and event attribute of HTML.
Common Attribute of Abbr Tag
| Attribute |
Value |
Explaination |
| id |
ID |
unique id document for element |
| class |
classname |
list of CSS classes |
| style |
StyleSheet |
associated style information of style tags |
| title |
Text |
information about an element shown on mouse over cursor |
| lang |
LanguageCode |
Language Code of the element |
| dir |
(ltr|rtl) |
direction for weak/neutral text |
Events Attribute of Abbr Tag
| Attribute |
Value |
Explaination |
| onclick |
event |
Event Fire on mouse button was clicked |
| ondblclick |
event |
Event Fire on a mouse button was double clicked |
| onmousedown |
event |
Event Fire on a mouse button was pressed down |
| onmouseup |
event |
Event Fire on a mouse button was released |
| onmouseover |
event |
Event Fire on a mouse was moved onto |
| onmousemove |
event |
Event Fire on a mouse was moved within |
| onmouseout |
event |
Event Fire on a mouse was moved away |
| onkeypress |
event |
Event Fire on a key was pressed and released |
| onkeydown |
event |
Event Fire on a key was pressed down |
| onkeyup |
event |
Event Fire on a key was released |
|