Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
alamenai opened this issue Nov 19, 2022 · 0 comments

Comments

@alamenai
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant