HTML Address Tag (<address>) defines the address or contact information of the owner of the resource or article or even document.
As a general convention, it is understood that if the Address Tag is inside the HTML <body> Tag or element then the Address Tag represents the address or contact information for that document or resource.
If the Address Tag is inside the HTML <article> Tag or element then the Address Tag represents the address or contact information for that article.
Also, the text within the HTML Address Tag is usually written in italics.
Most of the browsers will generally add a line break before and after the Address Tag.
Syntax for HTML Address Tag
<address> Some Address goes here </address>
Example of HTML Address Tag
|HTML address tag code||Output|
</pre> <address>Website Created by <a href="mailto:firstname.lastname@example.org">Web Master</a>. Visit us at: techhoney.com P.O. Box 123456789, Your State The Country</address> <pre>
Website Created by Web Master.Visit us at:techhoney.com
P.O. Box 123456789, Your State
Here we can see that the HTML Address Tag output code comes as italic.
HTML Address Tag supports all the HTML Global Attributes and HTML Event Attributes.
HTML Address Tag Supporting Browsers
Important Points about HTML Address Tag:-
HTML Address Tag should not be used to depict personal address until and unless the personal address is a part of your contact information.
The HTML Address Tag is typically included at the footer section of the webpage or resource.
In HTML 4.0.1 the HTML <article> tag is not supported and hence the HTML Address Tag defines the contact information for the document or resource owner.