Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

Relawan kami belum menerjemahkan artikel ini ke dalam Bahasa Indonesia . Bergabunglah dan bantu kami menyelesaikan pekerjaan ini!

The HTML <address> element supplies contact information for its nearest <article> or <body> ancestor; in the latter case, it applies to the whole document.

Usage note:

  • 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.
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 parent elements Any element that accepts flow content.
DOM interface HTMLElement Prior to Gecko 2.0 (Firefox 4), Gecko implemented this element using the HTMLSpanElement interface

Attributes

This element only includes the global attributes.

Example

  <address>
    You can contact author at <a href="https://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>

Above HTML will output:

Image:HTML-address.png

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.

Specifications

Specification Status Comment
WHATWG 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  

Browser compatibility

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support (Yes) 1.0 (1.7 or earlier) 1.0 5.12 1.0
Feature Android Firefox Mobile (Gecko) IE Mobile Opera Mini Opera Mobile Safari Mobile
Basic support (Yes) 1.0 (1.7) (Yes) (Yes) (Yes) (Yes)

See also

Tag Dokumen dan Kontributor

 Terakhir diperbarui oleh: Sheppy,