HTML – Address Tag and Abbr Tag

0
5
digitalample eye

HTML <ADDRESS> Element

The HTML <address> tag defines contact information for the nearest <article> or <body> ancestor in the HTML document.

Many documents needed to contain a snail-mail address, and there is a special <address> element that is used to contain addresses. For example, here is the address for AnsMachine inside <address> element. 

HTML Code

<address>Kathmandu Newbaneshwor, Nepal 46000 Bizulibazzar 24509</address>

Output


Kathmandu Newbaneshwor, Nepal 46000 Bizulibazzar 24509

A browser can display the address differently than the surrounding document IE, Firefox, and Safari display it in italics form. 
It is widely used in footer side to display address with contact details. 
You can override the design format of <address> element with CSS. 

HTML <ABBR> element for Abbreviations

You can indicate when you are using an abbreviated form by placing the abbreviation between opening <abbr> and closing </abbr> tags. 
When possible, consider using a title attribute whose value is the full version of the abbreviations. For example, if you want to indicate that CPU is an abbreviation for Central Processing Unit, you can use the <abbr> element,

HTML Code

The most important part of the Computer is <abbr title="Central Processing Unit">CPU</abbr>

Output

The most important part of the Computer is CPU
Now when user point on the abbreviation word CPU visitor will get look like below figure,

Abbr output

When your mouse hover on CPU abbr you will get the full form of the abbr. If you are abbreviating foreign word, you can also use the xml:lang attribute to indicate the language used. 

LEAVE A REPLY

Please enter your comment!
Please enter your name here