Emily Lewis
Wednesday, October 7, 2009
Check out Microformats Role Play for more on the benefits of microformats according to job role.
Describes the relationship of links containing tags (keywords) for your content
<a href="/tags/microformats/" rel="tag">microformats</a>
The rel="tag" attribute-value pair indicates the link destination (href) is to a page that tells what the current page — or part of the current page — is about.
Other than the semantic value, adding rel-tag supports context-specific searching:
hCard adds semantics to contact information for people, places and organizations/companies:
Emily Lewis
Next, add good, valid and semantic markup to your content:
<dl><dt>Emily Lewis</dt><dd><ul><li><a href="http://www.ablognotlimited.com">A Blog Not Limited</a></li><li>Albuquerque, NM 87106</li><li><a href="mailto:emily@ablognotlimited.com">emily@ablognotlimited.com</a></li></ul></dd></dl>Last, drop in the necessary HTML attributes and values for hCard:
<dl class="vcard"><dt class="fn">Emily Lewis</dt><dd><ul><li><a class="url" href="http://www.ablognotlimited.com">A Blog Not Limited</a></li><li class="adr"><span class="locality">Albuquerque</span>, <abbr class="region" title="New Mexico">NM</abbr> <span class="postal-code">87106</span></li><li><a class="email" href="mailto:emily@ablognotlimited.com">emily@ablognotlimited.com</a></li></ul></dd></dl>vcard in the hCard example) cannot be combined with sub-propertiesclass values for styling but you can still use additional classes that aren't part of microformatsspan to contain content that needs a microformat attribute-value pairhCalendar adds semantics to event information:
Standards & Accessibility With Dreamweaver
Add good, valid and semantic markup to your content:
<dl><dt><a href="http://www.webuquerque.com/Events/Standards-Accessibility-Dreamweaver.php">Standards & Accessibility With Dreamweaver</a></dt><dd>Wednesday, May 6, 2009; 6:30–7:30pm</dd><dd>Uptown Sports Bar and Grill<ul><li>6601 Uptown Blvd.</li><li>Albuquerque, NM 87110</li></ul></dd></dl>Drop in the necessary HTML attributes and values for hCard:
<dl class="vevent"><dt><a class="summary url" href="http://www.webuquerque.com/Events/Standards-Accessibility-Dreamweaver.php">Standards & Accessibility With Dreamweaver</a></dt><dd><span class="dtstart"><span class="value-title" title="2009-05-06T18:30:00"> </span>Wednesday, May 6, 2009; 6:30</span>–<span class="dtend"><span class="value-title" title="2009-05-06T19:30:00"> </span>7:30pm</span></dd><dd class="location">Uptown Sports Bar and Grill<ul><li>6601 Uptown Blvd.</li><li>Albuquerque, NM 87110</li></ul></dd></dl>Where it makes contextual sense, combine microformats:
<dl class="vevent"><dt><a class="summary url" href="http://www.webuquerque.com/Events/Standards-Accessibility-Dreamweaver.php">Standards & Accessibility With Dreamweaver</a></dt><dd><abbr class="dtstart" title="2009-05-06T18:30:00">Wednesday, May 6, 2009; 6:30</abbr>–<abbr class="dtend" title="2009-05-06T19:30:00">7:30pm</abbr></dd><dd class="location vcard"><span class="fn org">Uptown Sports Bar and Grill</span><ul class="adr"><li><span class="street-address">6601 Uptown Blvd.</span></li><li><span class="locality">Albuquerque</span>, <abbr class="region" title="New Mexico">NM</abbr> <span class="postal-code">87110</span></li></ul></dd></dl>My Getting Semantic With Microformats series of tutorials: