vocabulary

Markup for postal addresses

北城余情 提交于 2019-11-26 09:45:04
问题 Which HTML5 markup should we use for postal addresses? And which vocabulary could we use for enabling machine-readability? As an example, the address of W3C’s main office: W3C/MIT 32 Vassar Street Room 32-G515 Cambridge, MA 02139 USA 回答1: The address element must only be used if this postal address represents the contact information for "its nearest article or body element ancestor", which, of course, is not the case for all addresses. But if address is used or not, it doesn’t affect the