HTML5 <address> tag
You can provide the contact details of author of the page using the <address> element.
The text of the <address> element will be in Italic.
The best way to use the <address> element is inside these tags –
- <footer>
- <body>
- <article>
If this tag is present inside the <footer> or the <body> elements, then it sets the address information for the entire site.
If this element is present inside the <article> tag, then it sets the address information of the author of that particular article.
Syntax:
<address>Contact details of author/owner</address>
Example
<address> Written by micheal.<br> Reviewed by Deepak.<br> <a href= "https://www.tutorialbrain.com/" target="_blank">tutorialbrain.com Contact us at: <a href="mailto:[email protected]">Sam Billings</a>.<br><br> 58, XYZ Colony,<br> Bangalore<br> India </address>
Default CSS Values
display: block;
font-style: italic;
How Browser will display
BLOCK Level.
Difference between HTML4.01, XHTML and HTML5
HTML4 | XHTML | HTML5 |
---|---|---|
NA | NA | New tag in HTML5 |
Attributes used
No specific attribute
Global Attributes
The <address> tag supports Global attributes.
Event Attributes
The <address> tag supports Event attributes.
Supporting Browsers
Related Tags
You can also code the <address> element inside the <body> , <footer> or <article>.
Other List of related tags are:
<header>, <div>, <nav> & <section> tags.