HTML <address> Tag
Definition and Usage
The <address> tag defines the contact information for the author/owner of a document or an article.
If the <address> element is inside the <body> element, it represents contact information for the document.
If the <address> element is inside an <article> element, it represents contact information for that article.
The text in the <address> element usually renders in italic. Most browsers will add a line break before and after the address element.
Browser Support
Element | Chrome | Internet Explorer | Firefox | Safari | Opera |
---|---|---|---|---|---|
<address> | Yes | Yes | Yes | Yes | Yes |
Tips and Notes
Tip : The <address> tag should NOT be used to describe a postal address, unless it is a part of the contact information.
Tip : The <address> element will typically be included along with other information in a <footer> element.
Differences Between HTML 4.01 and HTML5
HTML 4.01 does not support the <article> tag, so in HTML 4.01 the
tag always defines the contact information of the document's author/owner.Default CSS Settings
Most browsers will display the <address> element with the following default values :
Example
address { display: block; font-style: italic; }
An address element is displayed like this:
Written by Jon Doe.Visit us at:
Example.com
Box 564, Disneyland
USA
Change the default CSS settings to see the effect.