Breaking

Monday, April 29, 2019

HTML address Tag

Example

Contact information for Example.com:
<address>
Written by <ahref="mailto:webmaster@example.com">Jon Doe</a>.<br>
Visit us at:<br>
Example.com<br>
Box 564, Disneyland<br>
USA
</address>
Try it Yourself »

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
<address>YesYesYesYesYes

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 <address> tag always defines the contact information of the document'sauthor/owner.

Global Attributes

The <address> tag also supports the Global Attributes in HTML.

Event Attributes

The <address> tag also supports the Event Attributes in HTML.

Related Pages

HTML DOM reference: Address Object

Default CSS Settings

Most browsers will display the <address> element with the following default values:

Example

address { 
  display: block;
  font-style: italic;
}
Try it Yourself »

No comments:

Post a Comment