Example
Contact information for Example.com:
<address>
Written by <a href="mailto:webmaster@example.com">Jon Doe</a>.<br>
Visit us at:<br>
Example.com<br>
Box 564, Disneyland<br>
USA
</address>
Definition and Usage
The <address>
tag defines the contact information for the author/owner of a document or an article.
The contact information can be an email address, URL, physical address, phone number, social media handle, etc.
The text in the <address>
element usually renders in italic, and browsers will always add a line break before and after the <address>
element.
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;
}
0 Comments: