Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What HTML tags are there for address information?

Tags:

html

xhtml

What address related tags are there for address and formatting and marking my address information in my webpages? I'm looking for XHTML or HTML5 compliant tags.

like image 484
Moshe Avatar asked Dec 03 '10 04:12

Moshe


2 Answers

There is the semantic <address> tag. You may also want to take a look at the hCard microformat.

like image 82
Asaph Avatar answered Sep 20 '22 19:09

Asaph


<address> from W3C:

The address element provides contact information for a document or part of a document. Information provided by address may include the names of the document’s maintainers, links to the maintainers’ Web pages, e-mail addresses for feedback, postal addresses, phone numbers, and so on. The address element is not appropriate for all postal and e-mail addresses; it should be reserved for providing such information about the contact people for the document. W3C HTML5 specification

Use <address> for addresses that are in fact the relevant contact information for a document or section of a document. Do not use it to represent arbitrary addresses.

For more detailed Address information it is recommended to use Microdata. Search Engines recognize Microformats, Microdata and RDFa, but Microdata is recommended.

Here is the Microdata Postal Address page with examples.You will be able to specify streetAddress, postalCode, telephone etc.

like image 23
Renan Santos Avatar answered Sep 17 '22 19:09

Renan Santos