Hands-on Microformats


Published on

Microformats can be used to markup rich content on your site. Here is a little tutorial to get you started.

Published in: Technology
  • Be the first to comment

No Downloads
Total views
On SlideShare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide

Hands-on Microformats

  1. Hands-on Microformats Denise R. Jacobs PapillonEffect.com
  2. Who is Denise? <ul><li>Starting with teaching herself HTML in 1996 (and dreaming in it for a while), Denise R. Jacobs has worked at creating and maintaining websites, web application localization, web project management, and teaching web design/development since then. </li></ul><ul><li>Currently, Denise is a Web Solutions Consultant with her company PapillonEffect.com in Miami, Florida. She helps individuals and businesses increase their web knowledge, transform their web presence, and bring their websites into the 21st century with standards-based markup, web 2.0 tools, and the use of Social Media. </li></ul>
  3. What are Microformats? <ul><li>Microformats are small patterns of HTML to represent commonly published things like people, events, blog posts, reviews and tags in web pages. </li></ul><ul><li>Great. So what good does that do? </li></ul><ul><li>Microformats are a way of adding simple markup to human-readable data items such as events, contact details or locations, on web pages, so that the information in them can be extracted by software and indexed, searched for, saved, cross-referenced or combined. </li></ul><ul><li>In other words… </li></ul><ul><li>Microformats capitalize on the way people already work with and use the web, and add an additional layer of information that enhances functionality and use of the content on your pages. </li></ul>
  4. Microformats are not <ul><li>a new language </li></ul><ul><li>overly complex </li></ul><ul><li>a whole new approach that throws away what already works today </li></ul>
  5. The Basis of Microformats <ul><li>Shhhhh! Here’s a secret: </li></ul><ul><li>Microformats are based on clean, semantic (X)HTML (aka POSH). If you use this already, you are very close to using microformats, and you won't have to do much additional work to implement them on your site. </li></ul><ul><li>Microformats add information to a web page using mostly the class attribute (although sometimes the id, title, rel or rev attributes too). The class names are semantically rich and describe the data they encapsulate. </li></ul>
  6. What can Microformats do for you? <ul><li>Why use Microformats? </li></ul><ul><li>They provide consistency </li></ul><ul><li>They provide contextual meaning beyond the standard set of XHTML elements. </li></ul><ul><li>Why were microformats developed? </li></ul><ul><li>they are a logical next step in the evolution of web design and information architecture </li></ul><ul><li>they are a way for people and organisations to publish richer information themselves, without having to rely upon centralized services </li></ul><ul><li>they provide a way to use (X)HTML for data. </li></ul>
  7. Microformats currently supported <ul><li>hCalendar – Putting Event & Todo data on the web (iCalendar) </li></ul><ul><li>hCard – electronic business card/self-identification (vCard </li></ul><ul><li>rel-license – To declare licenses for content </li></ul><ul><ul><li>Example: <a rel=&quot;license&quot; href=&quot;http://creativecommons.org/licenses/by-nc-sa/2.0/&quot;> </li></ul></ul><ul><li>rel-tag – Allow authors to assign keywords to stuff. </li></ul><ul><ul><li>Example: <a rel=&quot;tag&quot; href=&quot;tagspace/tag&quot;>...</a> </li></ul></ul><ul><li>VoteLinks </li></ul><ul><li>XFN Distributed Social Networks (“XHTML Friends Network “) </li></ul><ul><ul><li>Example: <a rel=&quot;friend met&quot; href=&quot;http://molly.com&quot;>Molly Holzschlag</a> </li></ul></ul><ul><li>XOXO - eXtensible Open XHTML Outlines (you are looking at one!) </li></ul>
  8. Microformats coming in the not-so-distant future <ul><li>adr - for marking up address information </li></ul><ul><li>geo - for marking up geographic coordinates (latitude; longitude) </li></ul><ul><li>hAtom - format to standardize feeds/syndicating episodic content (e.g. weblog postings) </li></ul><ul><li>hAudio </li></ul><ul><li>hProduct </li></ul><ul><li>hRecipe </li></ul><ul><li>hResume - for publishing resumes and CVs </li></ul>
  9. Microformats coming in the not-so-distant future (contd) <ul><li>hReview -Publishing reviews of products, events, people, etc </li></ul><ul><li>rel-directory - distributed directory building </li></ul><ul><li>rel-enclosure - for indicating attachments (e.g. files) to download and cache </li></ul><ul><li>rel-home - indicate a hyperlink to the homepage of the site </li></ul><ul><li>rel-payment - indicate a payment mechanism </li></ul><ul><li>xFolk </li></ul>
  10. That’s all well and good, but nobody uses them, right? <ul><li>hCalendar – events: Yahoo Upcoming.org, Eventful.com, Wikipedia, more… </li></ul><ul><li>hCard - people & orgs: Avon.com, Eventful.com, Flickr, Google, Wikipedia, mailchimp.com more… </li></ul><ul><li>rel-license - license links: CC Creator, Yahoo CC search, Google Rights Search </li></ul><ul><li>rel-tag - content tagging: Technorati, Ice Rocket, more </li></ul><ul><li>VoteLinks - for/against/abstain a link: Technorati </li></ul><ul><li>XOXO - lists and outlines: WordPress, Technorati, S5, more </li></ul><ul><li>hListing - classifieds: Oodle, Edgeio, WordPress plugin </li></ul>
  11. More big names using Microformats <ul><li>hResume - resumes: SimplyHired </li></ul><ul><li>hReview – reviews: JudysBook, Reevoo, more </li></ul><ul><li>rel-directory - directory inclusion: Technorati </li></ul><ul><li>Xfn – relationships: Wordpress, Flickr, Rubhub.com </li></ul><ul><li>Geo: Wikipedia </li></ul><ul><li>hReview: Yahoo, on several sites </li></ul>
  12. Hands-on: Something you may have done already <ul><li>xfn on your blog </li></ul>
  13. Hands-on: Something you can do tonight <ul><li>Put an hcard on your website </li></ul><ul><li>vCard Example </li></ul><ul><li>1. BEGIN:VCARD </li></ul><ul><li>2. N:Jacobs;Denise;;; </li></ul><ul><li>3. FN:Denise Jacobs </li></ul><ul><li>4. EMAIL;type=INTERNET;type=WORK;denise@papilloneffect.com </li></ul><ul><li>5. END:VCARD </li></ul>
  14. Hands-on: Something you can do tonight (cont'd) <ul><li>hCard, the markup: </li></ul><ul><li>1. <div class=&quot;vcard&quot;> </li></ul><ul><li>2. <span class=&quot;fn&quot;>Denise Jacobs </span> </li></ul><ul><li>3. <span class=&quot;email&quot;> </li></ul><ul><li>4. <span class=&quot;type&quot;>work</span> </li></ul><ul><li>5. <a class=&quot;value href=&quot;mailto:denise@papilloneffect.com&quot;>denise@papilloneffect.com</a> </li></ul><ul><li>6. </span> </li></ul><ul><li>7. </div> </li></ul>
  15. Hands-on: Something you can do in upcoming months <ul><li>Your personal website(s)/ blog(s): </li></ul><ul><li>add hCard to your contact info page along with an &quot;Add to address book&quot; link </li></ul><ul><li>add hCard+XFN to your friends list or blog roll </li></ul><ul><li>add your website and contact page to the hcard-examples-in-wild page. </li></ul><ul><li>add hAtom to your blog pages </li></ul>
  16. Hands-on: Something you can do in upcoming months <ul><li>Your company/organization’s website: </li></ul><ul><li>add hCard to the contact/about pages along with &quot;Add to address book&quot; links for each hCard. </li></ul><ul><li>If your company has a page listing employees or others that belong to the organization, add hCard to the listings or search results. </li></ul><ul><li>Use hCalendar anywhere on the website that publishes event information. </li></ul><ul><li>If your organization publishes its history, mark up the events noted with hCalendar, thus allowing anybody to build a dynamic timeline application with your history. </li></ul><ul><li>Any publication of information about people, events, reviews etc. could benefit from being marked up with hCard, hCalendar, and hReview respectively. </li></ul>
  17. Don't wait! Get in on the trend. <ul><li>&quot;...Do you just use your browser to browse? That's so 20th century.&quot; -- Mark Pilgrim </li></ul>
  18. Questions? <ul><li>Anyone? Anyone? </li></ul><ul><li>You can always contact me later if you need to: denise (at) denisejacobs (dot) com </li></ul><ul><li>Or follow me on Twitter: @denisejacobs </li></ul>
  19. Resources & Acknowledgements <ul><li>Michael Montgomery's Refresh presentation, October 2008: http://www.webstandardsforskeptics.com/microformats_29oct08.html </li></ul><ul><li>Microformats.org: http:// microformats.org /get-started , http:// microformats.org/wiki/Main_Page </li></ul><ul><li>Kevin Lawver’s presentation: http:// presentations.lawver.net/standards/power_of_microformats / </li></ul><ul><li>Tantek Celik’s presentation: http://tantek.com/presentations/2006/03/what-are-microformats/ </li></ul><ul><li>Ryan King’s presentations: , http://theryanking.com/presentations/2006/www/ </li></ul><ul><li>Great overview article: http://www.smashingmagazine.com/2007/05/04/microformats-what-they-are-and-how-to-use-them/ </li></ul><ul><li>Microformat-generating tools: http:// microformats.org /code-tools/ </li></ul>