Aug 04 2008

Contact Details via hCard

Published by under Internet and tagged: , ,

Rowan’s blog reminded me that I had been meaning to update my contact details on this blog in the hCard standard. In case you have no idea what hCards or microformats are, then read these two articles for more info: Wikipedia, Microformats. And in case those articles are too technical, then all you really need to know is that the hCard format makes it easier for computers to understand your contact details.

Here’s the code I used for mine (you can see it in the sidebar) – just modify with your details as necessary.

<div id="hcard-Stuart-Maxwell" class="vcard">
    <a class="url fn" href="http://stuart.amanzi.co.nz">Stuart Maxwell</a><br />
    <a class="email" href="mailto:[email protected]">[email protected]</a><br />
    <span class="tel">021766940</span>
    <div class="adr">
        <div class="post-office-box">PO Box 5858</div>
        <span class="locality">Lambton Quay</span>,
        <span class="region">Wellington</span>,
        <span class="postal-code">6145</span>
        <span class="country-name">New Zealand</span>
    </div>
    <a class="url" href="xmpp:[email protected]">Jabber</a>,
    <a class="url" href="http://twitter.com/stuartm">Twitter</a>,
    <a class="url" href="http://flickr.com/photos/amanzi">Flickr</a>,
    <a class="url" href="http://www.linkedin.com/in/smaxwell">LinkedIn</a>,
    <a class="url" href="http://www.facebook.com/people/Stuart_Maxwell/652219672">Facebook</a>
</div>

If the text above looks like gobbledygook to you, then try this online hCard creator instead. You can see how it’s made up and then add more details to it if you like.

Update – updated the PO Box details based on Andy’s comment below – thanks!

Comments Off on Contact Details via hCard




Comments are closed at this time.