-
Microformats, Building Blocks, and You
2007-05-25, Metropolitan III, Westin San Francisco Market Street
Tantek
Çelik
Chief Technologist
-
-
microformats
-
why microformats
- everybody wants to be more meaningful
- what Dan Cederholm said:
- human readable - content and formats
- takes the guess work out of marking up certain things
- stylable with css
- applications: user download/subscribe, search engines
- "Accidental API" - Brian Oberkirch
- works now.
-
microformats and internationalization
- Richard Ishida mentioned dates and names
- microformats use the ISO8601 standard for dates and times
- ISO8601 wasn't designed to be human readable
- ... but has become human readable over time
- 2003-02-01 more cross-culturally understandable than 03/02/01
- hCard microformat re-uses IETF standard vCard vocabulary
- e.g. given-name family-name (not first last)
- reuse intl standards/terms = more intl to start with
- lesson for terminology: reuse, don't reinvent
- some concerns with tel/adr 'types' e.g. 'fax', 'home', 'work'
-
building blocks: HTML and XHTML
- HTML 4.0 semantics, XHTML 1.0 syntax and structure
- Why not use XHTML 1.1?
- no benefit
- required mime type not supported by IE
- Why not use XHTML 2.0?
- not supported
- backward incompatible - cognitive dissonance
- Why use XHTML instead of HTML?
- well-formed XML = simple API for free
- Dan Cederholm's cork'd/GRDDL example
-
building blocks: POSH
- POSH = Plain Old Semantic HTML
- semantic, not presentational HTML tags/attributes
- don't abuse semantic tags (e.g. table, blockquote)
- use <p> instead of <br><br>
- use headings instead of <b> and <font>
- avoid empty anchors, use 'id' on any element
- semantic class names
- for more POSH tips see: microformats.org/wiki/posh
-
building blocks: why POSH?
- keep your site IA in-place
- easier to style with CSS
- better default behaviors from more user agents
- accessibility - screen readers
- diverse device support - mobile
- search engine optimization
- rant tangent
- avoid unindexed formats exclusively for text, e.g. Flash
- PDF cannot be trusted, degrades worse than HTML
- had to use a bitmap to print your cheatsheets
-
building blocks: microformats and pingerati
- after (or while) POSHifying your site...
- include appropriate microformats
- setup pinging http://pingerati.net/ to distribute your updates
-
microformats and you
- common examples of when to use which microformats
- about/contact page
- hCard + Add to Address Book link
- conference page of speakers
- user profile pages
- hCard + XFN, ping pingerati.net with updates
- e.g. Cork'd, Flickr, Technorati, Twitter, Upcoming, Zooomr…
- add hKit support to import/subscribe others' profile hCards
- shared user profiles are in reach
- watch getsatisfaction.com
-
microformats and you (cont'd)
- common examples of when to use which microformats (cont'd)
- anything episodic
- hAtom, ping pingerati.net with updates
- event listings
- hCalendar, ping pingerati.net with updates
- e.g. Toupeepal.com, BarCamp.org
- your resume
- hResume, ping pingerati.net when you update it
- reviews, from users etc.
-
-
hCard markup example
http://tantek.com/
Tantek
Çelik
-
hCard markup example
<div >
<a href="http://tantek.com/">
<span >Tantek</span>
<span >Çelik</span>
</a>
</div>
-
hCard markup example
<div class="vcard">
<a class="url fn n" href="http://tantek.com/">
<span class="given-name">Tantek</span>
<span class="family-name">Çelik</span>
</a>
</div>
-
hCard markup example
<div class="vcard">
<a class="url fn n" href="http://tantek.com/">
<span class="given-name">Tantek</span>
<span class="family-name">Çelik</span>
</a>
</div>
-
-
Microformats: 2004 → 2007
-
Microformats: 2004 → 2007
-
- XFN - distributed social network
- blo.gs, WordPress, Rubhub, more…
- rel-license - license links
- CC Creator, Yahoo CC search, Google Search
- XOXO - lists and outlines
- WordPress, Technorati, more…
- VoteLinks - for/against/abstain a link
- hCalendar - events
- Y! Upcoming, Eventful, LiveClipboard, more…
- hCard - people & orgs
- Y! Local, Flickr/Zooomr/Technorati profiles, LiveClipboard, more…
- rel-tag - content tagging
- Technorati, Ice Rocket, more…
-
-
Recently released...
- December 2006: Pingerati.net launched — updates distributor
- Technorati Contacts Service and Events Service launched
- Operator - Firefox extension detects hCard, hCalendar, geo, hReview, rel-tag, hResume, more every week
- January 2007: Linkedin - 9M+ hResumes
- March 2007: SXSW 2007 - 500+ speaker 1000+ band hCards
- hCard in Wikipedia bios with Infobox templates
- April 2007: members of the 110th US Congress
- May 2007: Twitter - 100k+ hCards + XFN + hAtom
-
-
Microformats Community
- IRC
- Email
- Blog
- Wiki
- if you find errors, please fix them, like Wikipedia
- advocate microformats support on sites you use
- add examples, help research, brainstorm, etc.
- help translate!
-
Microformat Exercise for the Reader
-
Colophon
-
Thanks!
-
Extra stuff
-
semantic markup history
2000-2002
Broad CSS1 support
- IE5/Mac, Moz, IE6/Win, Opera
web designers use more CSS
- less presentational markup
<table> & <font>
float & font-family
- Smaller documents
web designers rediscover semantic (X)HTML
less <b><br>
more <h3><p>
Search engine relevance
Easier to style
2003
Blogging tools adopt more semantic (X)HTML
<a name>
→ <div id>
and <a rel="bookmark">
'rel' attribute rediscovered
blogrolls link people/URLs
extends 'rel'
2004
O'Reilly ETech conference
- "microformats" introduced
- rel="license" & VoteLinks
- XOXO (XHTML Outlines)
FOO Camp brainstorms
-
-
XHTML Friends Network (XFN) extends 'rel'
-