The HTML <address>
element indicates that the enclosed HTML
provides contact information for a person or people, or for an
organization.
The contact information provided by an <address>
element\'s contents
can take whatever form is appropriate for the context, and may include
any type of contact information that is needed, such as physical
address, URL, email address, phone number, social media handle,
geographic coordinates, and so forth. The <address>
element should
include the name of the person, people, or organization to which the
contact information refers.
<address>
can be used in a variety of contexts, such as providing a
business\'s contact information in the page header, or indicating the
author of an article by including an <address>
element within the
<article>
.
Attributes
This element only supports the global attributes.
Usage notes
- To represent an arbitrary address, one that is not related to the
contact information, use a
<p>
element rather than the<address>
element. - This element should not contain more information than the contact
information, like a publication date (which belongs in a
<time>
element). - Typically an
<address>
element can be placed inside the<footer>
element of the current section, if any.
Examples
This example demonstrates the use of <address>
to demarcate the
contact information for an article\'s author.
Although it renders text with the same default styling as the
<i>
or <em>
elements, it is more appropriate to use <address>
when dealing with
contact information, as it conveys additional semantic information.
HTML
<address>
You can contact author at <a href="http://www.somedomain.com/contact">
www.somedomain.com</a>.<br>
If you see any bugs, please <a href="mailto:webmaster@somedomain.com">
contact webmaster</a>.<br>
You may also want to visit us:<br>
Mozilla Foundation<br>
331 E Evelyn Ave<br>
Mountain View, CA 94041<br>
USA
</address>
Result
Desktop | Mobile | |||
---|---|---|---|---|
Chrome | Edge | Chrome | Edge | |
video | 3 | Yes | ? | No |
See also
karlstolley, mfuji09, SphinxKnight, sarahsga4, Sheppy, teoli, sebastien-bartoli, rudijuri, sideshowbarker, erikadoyle, Sebastianz, Jeremie, araz07, mrevan, kscarfone, pwdst, medicdude, ethertank, trevorh, floEdelmann, rockymeza, saneyuki_s, cers, McGurk, hobophobe, jswisher, adactio, Witia, PablO, alecananian