Warning:
This wiki has been archived and is now read-only.

Elements/address

From HTML Wiki
Jump to: navigation, search

<address>

The <address> element represents the contact information for its nearest article or body element ancestor.

Point

  • The address element must not be used to represent arbitrary addresses, unless those addresses are in fact the relevant contact information.
  • Typically, the address element would be included along with other information in a footer element. [Example A]

HTML Attributes

See global attributes.


Examples

Example A

For example, a page at the W3C Web site might include the following contact information: [try it]:

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

Example of bad usage

For example, the following is non-conforming use of the address element

<!-- do not copy this example, it is an example of bad usage! -->
<address>Last Modified: 2009/12/24 23:37:50</address>

HTML Reference

The HTML5 specification defines the <address> element in 4.4.10 The address element.