HTML Tags
Advertisements

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:

HTML / XHTML: <address> ... </address>

The example below shows the <address> tag in action.

<footer>
    <address>
        <p><a href="https://www.w3.org/Consortium/contact-mit">MIT</a></p>
    </address>
</footer>

Note: Although the text content of the <address> element usually renders with the same default styling as the <i> or <em>, but it is more appropriate to use when dealing with contact information, as it conveys additional semantic information.


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.

Browsers Icon

Basic Support—

  • Firefox 1+
  • Google Chrome 1+
  • Internet Explorer 2+
  • Apple Safari 1+
  • Opera 4+

Further Reading

See tutorial on: HTML Text Formatting.

Related tag: <p>, <footer>.

Advertisements
Bootstrap UI Design Templates Property Marvels - A Leading Real Estate Portal for Premium Properties