What HTML tags are there for address information?

2019-06-22 04:38发布

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.

标签: html5 xhtml html
4条回答
\"骚年 ilove
2楼-- · 2019-06-22 05:29

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

查看更多
姐就是有狂的资本
4楼-- · 2019-06-22 05:34

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

查看更多
孤傲高冷的网名
5楼-- · 2019-06-22 05:38

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

查看更多
登录 后发表回答