开发者

What HTML tags are there for address information?

What address related tags are there for address and formatting and marking m开发者_运维问答y address information in my webpages? I'm looking for XHTML or HTML5 compliant tags.


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


<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.


vcard in Microformats - http://microformats.org/wiki/hcard-examples

vcard in Microdata - http://www.whatwg.org/specs/web-apps/current-work/multipage/links.html#vcard

vcard in RDFa - http://www.w3.org/TR/vcard-rdf/#Exa


You can use <address> tag. Go to following link for details. http://dev.w3.org/html5/spec/the-address-element.html#the-address-element

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜