HTML <address>
Tag
Topic: HTML5 Tags ReferencePrev|Next
Description
The <address>
tag specifies the author's contact information.
This element is used to mark up the contact details for the author or owner of the document, so that the reader may use these details to contact the document's owner. The <address>
element often appears at the beginning or end of a document.
The following table summarizes the usages context and the version history of this tag.
Placement: | Block |
---|---|
Content: | <p> , inline, and text |
Start/End Tag: | Start tag: required, End tag: required |
Version: | HTML 2, 3.2, 4, 4.01, 5 |
Usage Notes
- The address tag must not be used to represent arbitrary addresses (i.e. addresses that are not relevant to the contact information).
- The address tag must not contain information other than contact information, like a publication date (which belongs in a
<time>
tag). - Typically, the address tag should be included inside the
<footer>
section.
Syntax
The basic syntax of the <address>
tag is given with:
The example below shows the <address>
tag in action.
Example
Try this code »<footer>
<address>
<p><a href="https://www.w3.org/Consortium/contact-mit">MIT</a></p>
</address>
</footer>
Tag-Specific Attributes
The <address>
tag doesn't have any specific attribute.
Global Attributes
Like all other HTML tags, the <address>
tag supports the global attributes in HTML5.
Event Attributes
The <address>
tag also supports the event attributes in HTML5.
Browser Compatibility
The <address>
tag is supported in all major modern browsers.
Basic Support—
|
Further Reading
See tutorial on: HTML Text Formatting.