-
Microformats at Stanford
2007 March 23 —
Stanford University
Tantek
Çelik
Chief Technologist
-
-
microformats - how did we get here?
- separation of markup & style
- semantic (X)HTML proficiency
- class names for meaning/IA
- recognizing solved problems
- reusing vocabularies saves time
- reusing also shares meaning
- community established for learning, sharing, collaborating
-
microformats - common content first
- prioritization
- simple solutions to common problems/content first
- blogroll relationships - XFN
- licenses - rel-license
- lists & outlines - XOXO
- people & organizations - hCard
- events - hCalendar
-
microformats - common content cont'd
-
microformats - just better markup?
- cleanly separated valid semantic publishing
- maintenance, changes, updates
- collaboration, team work
- accessibility
- diverse device support
- new user benefits
- easier to move data - less copy/paste
- subscribing to structured content - events
- better search
- re-entering all my contacts problem
-
-
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>
-
What are Microformats?
-
Microformats enable the publishing and sharing
of higher fidelity information on the Web.
- Building blocks that enable users to own, control, move, and share their data on the Web.
-
Small bits of (X)HTML that identify richer data types
like people and events in your webpages.
- The fastest and simplest way to provide an API for your website.
-
More than just "good class names"
- principles keep things "micro"
- process emphasizes getting real
- community minimizes duplicates
-
Microformats Principles
- solve a specific problem
-
The trick.... is to make sure that each limited mechanical part of the Web, each application, is within itself composed of simple parts that will never get too powerful.
- —Tim Berners-Lee, Weaving The Web
-
Microformats Principles
- solve a specific problem
- simple as possible
- evolutionary improvements
- humans first, machines second
- presentable and parsable
- adapt to current behaviors
- reuse from widely adopted standards
- semantic (X)HTML, schemas from interoperable RFCs
-
...if I had insisted everyone use HTTP, this would also have been against the principle of minimal constraint. ... the Web would come as a set of ideas that could be adopted individually in combination with existing or future parts.
- ibid.
-
Microformats Principles
- solve a specific problem
- simple as possible
- evolutionary improvements
- humans first, machines second
- presentable and parsable
- adapt to current behaviors
- reuse from widely adopted standards
- semantic (X)HTML, schemas from interoperable RFCs
- modularity / embeddability
- decentralized development, content, services
- explicitly encourage "spirit of the Web"
-
- Analogy: link to a stylesheet with rel="stylesheet"
- Thus: link to a license with rel="license"
-
Example: rel-license
http://creativecommons.org/licenses/by/3.0/
Some rights reserved. CC by-3.0.
-
Example: rel-license
<a
href="http://creativecommons.org/licenses/by/3.0/">
Some rights reserved. CC by-3.0.
</a>
-
Example: rel-license
<a rel="license"
href="http://creativecommons.org/licenses/by/3.0/">
Some rights reserved. CC by-3.0.
</a>
-
Example: rel-license
<a rel="license"
href="http://creativecommons.org/licenses/by/3.0/">
Some rights reserved. CC by-3.0.
</a>
-
rel-license support
-
- pick a specific, simple problem and define it
- research & document current web publishing behavior
- document existing formats in the problem area
- brainstorm with implied schema / reuse names
- iterate within the community
-
-
Example: hCalendar
http://tantek.com/presentations/...
Microformats at Stanford
2007 March 23
-
Example: hCalendar
<ol >
<li >
<a href="http://tantek.com/presentations/..."
>
<span >Microformats at Stanford</span>
2007 March 23
</a>
</li>
</ol>
-
Example: hCalendar
<ol class="vcalendar">
<li class="vevent">
<a href="http://tantek.com/presentations/..."
class="url">
<span class="summary">Microformats at Stanford</span>
<abbr class="dtstart" title="20070323T1200-0700">
2007 March 23
</abbr>
</a>
</li>
</ol>
-
Example: hCalendar
<ol class="vcalendar">
<li class="vevent">
<a href="http://tantek.com/presentations/..."
class="url">
<span class="summary">Microformats at Stanford</span>
<abbr class="dtstart" title="20070323T1200-0700">
2007 March 23
</abbr>
</a>
</li>
</ol>
-
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
- Yahoo Upcoming.org, Eventful.com, more…
- hCard - people & orgs
- Avon.com, Eventful.com, more…
- rel-tag - content tagging
- Technorati, Ice Rocket, more…
-
-
Recently released...
-
-
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!
-
Microformats Community - New
- Email
- join microformats-new mailing list
- for focusing new microformat development and process
- Help develop
- citation
- media-info
- photo notes
-
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'
-