Skip to content

address defines a contact information not arbitrary addresses ( eg:postal addresses )?! #28

@alamenai

Description

@alamenai

WHATWG source

HTML Standard

WHATWG definition

The address element represents the contact information for its nearest article or body element ancestor. If that is the body element, then the contact information applies to the document as a whole.

The address element must not be used to represent arbitrary addresses (e.g. postal addresses), unless those addresses are in fact the relevant contact information. (The p element is the appropriate element for marking up postal addresses in general.)

The address element must not contain information other than contact information.

WHATWG example

<ADDRESS>
 <A href="../People/Raggett/">Dave Raggett</A>,
 <A href="../People/Arnaud/">Arnaud Le Hors</A>,
 contact persons for the <A href="Activity">W3C HTML Activity</A>
</ADDRESS>

Your source

HTML Reference

Your definition

The address Defines a block for contact information.

Your example

<address>
  Infinite Loop,<br>
  Cupertino, CA<br>
  95014, USA
</address>

Key differences

Your example defines a postal address while ```address`` 's semantic is defining contact information.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions