Natural language hCard

Drew has written up the process of adding hCard to Vitamin. To view the results in action, try visiting Vitamin using Firefox with the Tails extension installed.

Drew explains what prompted the conversion:

Something struck me about the site as soon as I saw all the list of advisors. It’s the perfect candidate for exuberant use of the hCard microformat, so I dropped Ryan Carson a line and made the suggestion.

I recently had a similar satori. On every page of this site, there’s a little explanatory blurb in the sidebar:

Adactio is the online home of Jeremy Keith, a web developer living and working in Brighton, England.

This used to be contained in a simple paragraph element:

<p>Adactio is the online home of Jeremy Keith, a web developer living and working in Brighton, England.</p>

I noticed that this little paragraph contained:

  • my full name,
  • my profession,
  • my town and
  • my country.

<p>Adactio is the online home of Jeremy Keith, a web developer living and working in Brighton, England.</p>

This information is easily encoded in hCard:

<p class="vcard">Adactio is the online home of <span class="fn">Jeremy Keith</span>, a <span class="title">web developer</span> living and working in <span class="adr"><span class="locality">Brighton</span>, <span class="country-name">England</span></span>.</p>

Bam! Instant semantic richness.

I could have stopped there but I decided to go a little further and add a URL and email address:

<p class="vcard"><a class="url" href="http://adactio.com/">Adactio</a> is the online home of <a class="email fn" href="mailto:jeremy@adactio.com">Jeremy Keith</a>, a <span class="title">web developer</span> living and working in <span class="adr"><span class="locality">Brighton</span>, <span class="country-name">England</span></span>.</p>

This got me thinking about other places where microformats can be insterspersed in the flow of natural English sentences. I updated the author page over on the DOM Scripting site (there’s already an hCalendar of events). Speaker bios on conference websites would be another prime candidate.

I borrowed an idea from Andy Hume and started marking up comments as hCards on DOM Scripting and Principia Gastronomica. Once I started looking for it, I started seeing identity and event information in lots of places… even when it doesn’t explicitly look like cards or calendars.

The next time I’m writing or marking up some copy, I intend to sniff it for names, contact details, dates, etc. I hope to develop a nose for microformats.

Have you published a response to this? :

Responses

zeldman.com

Designspotter.com A web-based platform (public group blog) for design publication, protection, and publicity. Upload an image of your work and a linked description to feature your product at no cost. Oliver Stone, Terror Tourist Fred Gates pimp-slaps Stone’s 9/11 blockbuster (movie review). Google Strict vs. Google Deprecated Does Google’s crap markup really save bytes? Philipp Lenssen finds out. GraphicDesignBar:Design Forum Fine new design blog, rich in inspiring links. (Yes, that’s one of Douglas Bowman’s standard Blogger templates.) P22 News: Lanston Type Co. Summer 2006 releases Goudy, Bodoni, and Broadway, oh my! P22 announces the latest installment of remastered fonts from the historic Lanston Type Company. We are the Web: Fighting for Net Neutrality and Internet Freedom Net neutrality and internet freedom are being disbanded by greedy corporate swine and the lobbyist-fattened US lawmakers who are their lackeys. In case you didn’t know. Natural language hCard Jeremy Keith on adding hcard semantics to ordinary body copy—naturally. (I’ve done it here.) David Hughes Illustration Kind to your eyes. AsylumNYC AsylumNYC presents all non-US artists with the opportunity to exhibit and live in New York City, providing a solo show at a recognized New York institution and the legal aid necessary to obtain an artists visa in the United States. Weekly inspiration – 14 July Thought-provoking UX/IA blog posts noted. New York Times Librarian Awards “The New York Times Librarian Awards were created to support and recognize public librarians, who do so much to nurture a better-informed society.” Nominate your favorite librarian from anywhere in the U.S. Ben Hammersley’s Dangerous Precedent Concise, uniquely conceived blog entries, elegantly written and cleverly embedded in photos which function as parallel blog entries. The creator is a thoughtful and multitalented web developer, portrait photographer, and book author.

[tags]librarian, awards, typography, design, graphic design, web design, user experience, UX, information architecture, IA, microformats, hcard, net neutrality, webstandards, web standards, bandwidth, Google, Oliver Stone, art, illustration, immigration, links[/tags]

Like Loading…

# Thursday, February 22nd, 2024 at 5:59pm

Previously on this day

22 years ago I wrote Irish spring break

I’m back in Brighton after my short break in Ireland. For those of you uninterested in travelogues and holiday snaps, look away now.

23 years ago I wrote About this site

I’ve updated the "About" section of this site to include a new page about this site and how it was made.

24 years ago I wrote surRealpolitik

Ah, France.