What is the most semantic way to display a street address in HTML?

后端 未结 4 1604
礼貌的吻别
礼貌的吻别 2020-12-23 20:37

I have an address that is going to be displayed on a webpage, but it is not the address for the author of the page. How should this be coded to be semantic given the w3c rec

4条回答
  •  感动是毒
    2020-12-23 21:02

    The answer by Gumbo is missing an ingredient. An hcard/vcard is required to have a name.

    http://microformats.org/wiki/hcard#Property_List

    Also the address tag should not be used in this case as it is specifically used to relate to the author of the page it is displayed on.

    Tristan Ginger 169 University Avenue Palo Alto, CA 94301 USA

    Most business wanting to display their address on their website should use the following:

    Tristan Ginger Inc 69 University Avenue Great Bookham, Surrey KT22 9TQ UK

提交回复
热议问题