hcard

Usage of <address> tag in HTML: copyright or webmaster?

有些话、适合烂在心里 提交于 2019-12-10 19:29:01
问题 On the footer of my client’s website I have his address and copyright notice, and under there is the address of the webmaster. With both I will use the hCard microformat. With which of them I should use the <address> tag? 回答1: As per the HTML5 spec: The address element represents the contact information for its nearest article or body element ancestor. If that is the body element, then the contact information applies to the document as a whole. http://dev.w3.org/html5/spec/sections.html#the

Address book DB schema

徘徊边缘 提交于 2019-12-08 02:11:56
问题 I need to store contact information for users. I want to present this data on the page as an hCard and downloadable as a vCard. I'd also like to be able to search the database by phone number, email, etc. What do you think is the best way to store this data? Since users could have multiple addresses, etc complete normalization would be a mess. I'm thinking about using XML, but I'm not familiar with querying XML db fields. Would I still be able to search for users by contact info? I'm using

Address book DB schema

丶灬走出姿态 提交于 2019-12-06 11:33:58
I need to store contact information for users. I want to present this data on the page as an hCard and downloadable as a vCard . I'd also like to be able to search the database by phone number, email, etc. What do you think is the best way to store this data? Since users could have multiple addresses, etc complete normalization would be a mess. I'm thinking about using XML, but I'm not familiar with querying XML db fields. Would I still be able to search for users by contact info? I'm using SQL Server 2005, if that matters. Consider two tables for People and their addresses: People (pid,