Published on

Presentation on the basics and benefits of Microformats.

Published in: Lifestyle, Technology
1 Like
  • Be the first to comment

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

No notes for slide
  • Welcome to "Microformats: Finally Coming of Age?"   My name is Aaron Grogg, and I am a Senior Front-End Developer at People.com.
  • Today I am going to discuss Microformats. I'll cover what MFs are,    why you might want to use them,  show you a few existing use cases,  show you the dangling carrot that probably brought most of you here,  and then we can discuss how MFs might be used at various Time, Inc. titles.
  • So what are MFs? Essentially, they are an established set of elements classes that give your data semantic value. MFs allow you to make your mark-up tell people what it is. Is it a calendar event Is it a person's or organization's contact information? Is it a feed of information? Is it geographical coordinates? Is it relational data? Etc. Another "version" of such mark-up is RDFa, which is very similar to MFs in principle, but quite different application. I will only be covering MFs today.
  • So what does the sentence "We will meet next Wednesday for another Watercooler." tell you? As a person, you can read that and know what it means.   You can infer that next Wednesday is actually February 17th. You know from previous Watercoolers that it will start at 12:30pm. You even know that the meeting is called Watercooler. But to a computer or browser, that sentence is nothing more than a string of characters between an opening and closing P tag. If however, we include a little extra mark-up, like the highlighted dtstart , and include a standardized date format in its title attribute, suddenly any person or machine that reads that could know that "next Wednesday" is actually February 17, 2010.   And with a little more mark-up, like the vevent , summary , and expanded title which now includes a time, this actually becomes enough data to "automatically" add something to your calendar!   We know there is an event, its summary is Watercooler, we know its start date, and we know it start time.
  • Similarly, to you and me, this text obviously represents a person's name, title, and URL. But to machines, it is nothing more than a string of characters strewn together, separated by some HTML tags. But by adding the class vcard , we mark this as someone's contact information. The classes org , organzation-name , fn , and n , mark that information as an organization, organization's name, full name, and name. Likewise, title marks that person's title and url marks their website address.
  • So, so what, right? Okay, now machines know what my data means, but who cares? Who's going to use it? And how? Up until now, MFs have been relatively useless. If you happened to use Firefox, and had either the Operator or Tails add-on installed, you could make an icon in your status bar light up, and, technically, such users could download vcards into their Outlook. But how many people do you really think did that? You could also do something fancy like have some geo coords on your page, then those fancy icons that lit up would allow users to open those coords into a Google Maps page... Oooo, aahhh, blah, blah....
  • Then some of the real spearheads of MFs started trying to find useful ways to use MFs, to help people get excited about them. Jeremy Keith, when creating Huffduffer, adding something fun to his already interesting sign-up page, but having me not upload an image of myself, but going and getting an image of me from any one of several social sites to which I uploaded an image.   That's nice, makes my life a little easier, one less image to update when I eventually shave. Glenn Jones took probably one of the biggest steps forward when he created Oomph.  Oomph is a JS library that you can add to your website , which does what the FF add-ons do, but it is then in any browser, no add-ons required.   Now we're getting somewhere, but where? Google has a social graph, which proves I'm not very social...   IdentEngine starts getting a little scary, as it scours the social web, collecting bits and pieces from here and there, bringing them all back together in a single location for your viewing pleasure. And UFXtract will collect any MF info from a page and return it to you as JSON, XML, Text, or JSON/P. That's pretty handy, better than me having to write that myself.
  • But now... Here's where this starts to get interesting, and not just because the first bullet starts with the word Google. Okay, somewhat because of that, but really because of what they're doing now. Back in May of 2009, Google announced something they're oddly calling Rich Snippets. Essentially, they're looking at your mark-up and, if they see something that they recognize as structured data, they just "might" give it visual representation on search result pages... So far, they are only doing this for hReview and hCard, but others are sure to follow. In addition, some of the smart phones are making very nice use of MFs, though this is still truly one of the most powerful markets for MFs to be useful...
  • So, I'd like to open the discussion to ideas for various Time, Inc. titles. To get us started, People.com currently used hFeed for its Newswire channel, and most other modules that have a "feed" feel to them. As with most WP sites, all of our blogs have hFeed baked right in as well. And here are a few examples I thought could be useful. So, what else?
  • And here is a very brief list of resources that you might find useful in learning about, and then making use of, MFs.
  • Thank you, and here is the address to this presentation, via Bit.ly.
  • Microformats

    1. 1. Microformats Finally Coming of Age? Aaron T. Grogg Senior Front-End Developer People.com
    2. 2. Microformats <ul><ul><li>What are Microformats? </li></ul></ul><ul><ul><li>Why should I use them? </li></ul></ul><ul><ul><li>A few good mash-ups </li></ul></ul><ul><ul><li>But now... </li></ul></ul><ul><ul><li>So, where can we use these things at Time? </li></ul></ul><ul><ul><li>Resources </li></ul></ul>
    3. 3. What are Microformats? <ul><ul><li>Simple data formats that add semantic value to HTML </li></ul></ul><ul><ul><li>Many different types: </li></ul></ul><ul><ul><ul><li>hcalendar </li></ul></ul></ul><ul><ul><ul><li>hcard </li></ul></ul></ul><ul><ul><ul><li>hfeed </li></ul></ul></ul><ul><ul><ul><li>geo </li></ul></ul></ul><ul><ul><ul><li>xfn </li></ul></ul></ul><ul><ul><ul><li>... </li></ul></ul></ul><ul><ul><li>Also ran: RDFa </li></ul></ul>
    4. 4. hcalendar <ul><li>&quot;We will meet next Wednesday for another Watercooler.&quot; </li></ul><ul><li><p>We will meet next Wednesday for another Watercooler.</p> </li></ul><ul><li>  </li></ul><ul><li>  </li></ul><ul><li><p>We will meet <abbr class=&quot; dtstart &quot; title=&quot; 2010-02-17 &quot;> next Wednesday </abbr> for another Watercooler.</p> </li></ul><ul><li><p class=&quot; vevent &quot;>We will meet <abbr class=&quot; dtstart &quot; title=&quot; 2010-02-17T12:30:00-05:00 &quot;> next Wednesday </abbr> for another <span class=&quot; summary &quot;>Watercooler</span>.</p> </li></ul>
    5. 5. hcard <ul><li>&quot;Aaron T. Grogg, Web Developer, http://aarontgrogg.com/&quot; </li></ul><ul><li>    </li></ul><ul><li><header class=&quot; vcard &quot;> </li></ul><ul><li>    <h1 class=&quot; org organization-name fn n &quot;>         <span class=&quot; honorific-prefix &quot;>Mr.</span>         <span class=&quot; given-name &quot;>Aaron</span>         <span class=&quot; middle-name &quot;>T</span>.         <span class=&quot; family-name &quot;>Grogg</span>     </h1>     <h2 class=&quot; title &quot;>Web Developer</h2>     <a class=&quot; url &quot; href=&quot;http://aarontgrogg.com/&quot;>http://aarontgrogg.com/</a> </header> </li></ul>
    6. 6. Why should I use them? <ul><ul><li>Initially fairly useless </li></ul></ul><ul><ul><li>Download vcard (if using FF and Operator/Tails) - http://rogieking.com/ </li></ul></ul><ul><ul><li>Add Google Map to page - http://bit.ly/9PW2MG </li></ul></ul><ul><ul><li>Ooo, ahh, blah, blah blah.... </li></ul></ul>
    7. 7. A few good mash-ups <ul><ul><li>Huffduffer - http://huffduffer.com/aarontgrogg - grabs image from other social sites based on your URL </li></ul></ul><ul><ul><li>Oomph - http://visitmix.com/labs/oomph/2.0/client/style/firstrun.html - add Operator/Tails-like add-on through your site , not the browser </li></ul></ul><ul><ul><li>Google Social Graph - http://code.google.com/apis/socialgraph/ - track social references across the web </li></ul></ul><ul><ul><li>IdentEngine - http://identengine.com/ - uses semantic web APIs to bring together web &quot;footprints&quot; </li></ul></ul><ul><ul><li>UFXtract - http://ufxtract.com/ - extracts MFs from any web page, can output to JSON, JSON-P, XML or text. </li></ul></ul><ul><ul><li>But still... </li></ul></ul>
    8. 8. But now... <ul><ul><li>Google Rich Snippets - http://bit.ly/aw6WW6 - a new presentation of snippets that applies Google's algorithms to highlight structured data embedded in web pages </li></ul></ul><ul><ul><ul><li>Update on Rich Snippets - http://bit.ly/atmI8A </li></ul></ul></ul><ul><ul><ul><li>Rich Snippets in Custom Search - http://bit.ly/9jvoJS </li></ul></ul></ul><ul><ul><ul><li>Tips and Tricks - http://bit.ly/cmO4r9 </li></ul></ul></ul><ul><ul><li>Mobile - http://microformats.org/wiki/mobile </li></ul></ul><ul><ul><ul><li>Treo and Nokia S60 support hcard and hcalendar </li></ul></ul></ul><ul><ul><ul><li>Sony Ericsson W810i supports hcard </li></ul></ul></ul><ul><ul><ul><li>BB, iPhone, Sidekick = absent... </li></ul></ul></ul><ul><ul><li>And this just in... http://html5doctor.com/the-time-element/   </li></ul></ul><ul><ul><ul><li>Bruce Lawson, MFs and HTML5: <time datetime=&quot;2010-01-20&quot; pubdate > </li></ul></ul></ul>
    9. 9. So, where can we use these things? <ul><ul><li>MyRecipes.com, EW.com, RealSimple.com </li></ul></ul><ul><ul><ul><li>ratings / reviews </li></ul></ul></ul><ul><ul><li>Time.com </li></ul></ul><ul><ul><ul><li>vcard for each columnist </li></ul></ul></ul><ul><ul><ul><li>Google Map for each article location </li></ul></ul></ul><ul><ul><ul><li>other stories from around the web? </li></ul></ul></ul><ul><ul><li>Golf.com </li></ul></ul><ul><ul><ul><li>Google Map for each event location </li></ul></ul></ul><ul><ul><ul><li>hcalendar for each event location </li></ul></ul></ul><ul><ul><li>TOH.com </li></ul></ul><ul><ul><ul><li>Google Map for each project location </li></ul></ul></ul><ul><ul><li>People.com </li></ul></ul><ul><ul><ul><li>hcalendar for each award show </li></ul></ul></ul>
    10. 10. Resources <ul><ul><li>Learn About </li></ul></ul><ul><ul><ul><li>http://microformats.org/ </li></ul></ul></ul><ul><ul><ul><li>http://en.wikipedia.org/wiki/Microformat </li></ul></ul></ul><ul><ul><ul><li>http://microformats.org/wiki/what-are-microformats </li></ul></ul></ul><ul><ul><ul><li>http://net.tutsplus.com/tutorials/other/microformats-what-why-and-how/ </li></ul></ul></ul><ul><ul><ul><li>http://twitter.com/microformats </li></ul></ul></ul><ul><ul><li>Learn How To </li></ul></ul><ul><ul><ul><li>http://www.xfront.com/microformats/Microformat-Demonstration.html </li></ul></ul></ul><ul><ul><ul><li>http://www.addedbytes.com/cheat-sheets/microformats-cheat-sheet/ </li></ul></ul></ul><ul><ul><ul><li>http://microformats.org/code/hcard/creator </li></ul></ul></ul><ul><ul><ul><li>http://microformats.org/code/hcalendar/creator </li></ul></ul></ul><ul><ul><ul><li>http://gmpg.org/xfn/creator </li></ul></ul></ul><ul><ul><li>Make Use of </li></ul></ul><ul><ul><ul><li>https://addons.mozilla.org/en-US/firefox/addon/4106 </li></ul></ul></ul><ul><ul><ul><li>https://addons.mozilla.org/en-US/firefox/addon/2240 </li></ul></ul></ul><ul><ul><ul><li>http://zappatic.net/safarimicroformats/ </li></ul></ul></ul><ul><ul><ul><li>http://visitmix.com/labs/oomph/ </li></ul></ul></ul><ul><ul><ul><li>http://bit.ly/cmi1qv </li></ul></ul></ul><ul><ul><ul><li>http://bit.ly/a0xysk </li></ul></ul></ul><ul><ul><ul><li>http://leftlogic.com/lounge/articles/microformats_bookmarklet/ </li></ul></ul></ul>
    11. 11. Thank you! http://bit.ly/watercooler-microformats