Search code examples
htmlsemanticssemantic-markupmicroformats

hCard: can it be used to semantically markup a business' contact details only?


Is it possible to markup a business' contact details using hCard? A name apparently is required in hCard: http://microformats.org/wiki/hcard-authoring#The_Importance_of_Names (e.g. John Doe). I'm trying to mark up just a business' contact details. Is hCard useless to me?


Solution

  • An hCard has to have a name, but it doesn't have to be the name of a person; you can use hCard for organizations with markup like this:

    <div class="vcard"><span class="fn org">Technorati</span></div>
    

    Presumably the business whose contact details you're trying to mark up does have a name.