Introduction - Content

What are microformats?

Example of Microformat

 <ol class='xoxo'>
   <li>Prvni bod
     <ol>
         <li>Podbod a</li>
         <li>Podbod b</li>
     </ol>
   </li>
   <li>Druhy bod
     <ol compact="compact">
         <li>Podbod c</li>
         <li>Podbod d</li>
     </ol>
   </li>
 </ol>

Why to use microformats?

Microformats combines some trends:

How can be microformats replaced? (1)

How can be microformats replaced? (2)

Standardized Microformats

Developed microformats

hCalendar - Introduction

Introduction (2)

 <head profile="http://microformats.org/profile/hcalendar">

 <link rel="profile"
  href="http://microformats.org/profile/hcalendar">

 This content uses
 <a rel="profile"
  href="http://microformats.org/profile/hcalendar">
  hCalendar</a>.

Event Markup Example in iCalendar Format

      BEGIN:VCALENDAR
      BEGIN:VEVENT
      UID:guid-1.host1.com
      DTSTAMP:19980309T231000Z
      DESCRIPTION:Project XYZ Review Meeting
      SUMMARY:XYZ Project Review
      DTSTART:19980312T133000Z
      DTEND:19980312T143000Z
      LOCATION:1CP Conference Room 4350
      END:VEVENT
      END:VCALENDAR

Corresponding hCalendar Event Markup

 <div class="vevent">
 <h3 class="summary">XYZ Project Review</h3>
 <p class="description">Project XYZ Review Meeting</p>
 <p>To be held on
 <abbr class="dtstart" title="1998-03-12T08:30:00-05:00">
 12 March 1998 from 8:30am EST</abbr>
 until
 <abbr class="dtend" title="1998-03-12T09:30:00-05:00">
 9:30am EST</abbr></p>
 <p>Location: <span class="location">1CP Conference Room 4350</span></p>
 <small>Booked by: <span class="uid">guid-1.host1.com</span> on
 <abbr class="dtstamp" title="19980309T231000Z">
 9 Mar 1998 6:00pm</abbr></small>
 </div>

Tools for hCalendar Creating and Publishing

hCard - Introduction

 <head profile="http://microformats.org/profile/hcard">

 <link rel="profile"
  href="http://microformats.org/profile/hcard">

 This content uses
 <a rel="profile"
  href="http://microformats.org/profile/hcard">hCard</a>.

vCard Example

 BEGIN:VCARD
 VERSION:3.0
 N:Bartek;Ludek
 FN:Ludek Bartek
 URL:http://www.fi.muni.cz/~bar
 END:VCARD

Corresponding hCard

 <div class="vcard">
  <a class="url" href="http://www.fi.muni.cz/~bar/">
   <span class="fn n">
    <span class="given-name">Ludek</span>
    <span class="family-name">Bartek</span>
   </span>
  </a>
 </div>

hCard Creation and Manipulation Tools

XOXO - Introduction

Introduction (2)

 <head profile="http://microformats.org/profile/xoxo">

 <link rel="profile"
 href="http://microformats.org/profile/xoxo">

Sample XOXO Markup

 <ol class='xoxo'>
   <li>Subject 1
     <ol>
         <li>subpoint a</li>
         <li>subpoint b</li>
     </ol>
   </li>
   <li>Subject 2
     <ol compact="compact">
         <li>subpoint c</li>
         <li>subpoint d</li>
     </ol>
   </li>

Sample XOXO Markup (2)

   <li>Subject 3
     <ol>
         <li>subpoint e</li>
     </ol>
   </li>
 </ol>

Sample CSS for Example Visualization

 ol.xoxo { list-style:decimal; }
 ol.xoxo ol { list-style:lower-latin; }
 ol[compact="compact"] { display:none; }

Creating XOXO documents

hResume - Description (1)

Description (2)

It is a good practice to add links to following profiles to document using hResume:

 <head profile="http://microformats.org/profile/hresume">

 <link rel="profile"
  href="http://microformats.org/profile/hresume">

Sample - see example from lecture.

Microformats Design Patterns - Introduction

Abbr-design-pattern

      <abbr class="author" title="Danny Ayers">Danny</abbr>
 <abbr class="dtstart" title="20070312T1700-06">
  March 12, 2007 at 5 PM
 </abbr>

Class-design-pattern

<div class="vcard">
  <a class="url fn" href="http://www.fi.muni.cz/~bar">
   Ludek Bartek</a>,
  <span class="org">FI MU Brno</span>
</div>

Datetime-design-pattern

<abbr class="dtstart" title="20051010T10:10:10-0100">
    10 o'clock on the 10th
</abbr>

Atomic microformats

Composed Microformats

Resources