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 is needed, such as physical address, URL, email address, phone number, social media handle, geographic coordinates, and so forth. It 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>
.
Content categories | Flow content, palpable content. |
---|---|
Permitted content |
Flow content, but with no nested <address> element, no heading content (<hgroup> , <h1> , <h2> , <h3> , <h4> , <h5> , <h6> ), no sectioning content (<article> , <aside> , <section> , <nav> ), and no <header> or <footer> element. |
Tag omission | None, both the starting and ending tag are mandatory. |
Permitted parents | Any element that accepts flow content, but always excluding <address> elements (according to the logical principle of symmetry, if <address> tag, as a parent, can not have nested <address> element, then the same <address> content can not have <address> tag as its parent). |
Permitted ARIA roles | None |
DOM interface |
HTMLElement Prior to Gecko 2.0 (Firefox 4), Gecko implemented this element using the HTMLSpanElement interface |
This element only includes the global attributes.
<p>
element rather than the <address>
element.<time>
element).<address>
element can be placed inside the <footer>
element of the current section, if any.<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:[email protected]">contact webmaster</a>.<br> You may also want to visit us:<br> Mozilla Foundation<br> 1981 Landings Drive<br> Building K<br> Mountain View, CA 94043-0801<br> USA </address>
Although the address element renders text with the same default styling as the <i>
or <em>
elements, it is more appropriate to use when dealing with contact information, as it conveys additional semantic information.
Specification | Status | Comment |
---|---|---|
HTML Living Standard The definition of '<address>' in that specification. | Living Standard | |
HTML5 The definition of '<address>' in that specification. | Recommendation | |
HTML 4.01 Specification The definition of '<address>' in that specification. | Recommendation |
Feature | Chrome | Edge | Firefox | Internet Explorer | Opera | Safari |
---|---|---|---|---|---|---|
Basic support | Yes | Yes | 1 | Yes | Yes | 1 |
Feature | Android webview | Chrome for Android | Edge mobile | Firefox for Android | IE mobile | Opera Android | iOS Safari |
---|---|---|---|---|---|---|---|
Basic support | Yes | Yes | Yes | 4 | Yes | Yes | Yes |
<body>
, <nav>
, <article>
, <aside>
, <h1>
, <h2>
, <h3>
, <h4>
, <h5>
, <h6>
, <hgroup>
, <footer>
, <section>
, <header>
;
© 2005–2018 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/address