Publishing Events with hCalendar
Similar to hCard, the hCalendar (hCal for short) microformat is based on the iCalendar Internet calendaring standard, and can be used to publish event information in a manner that users can easily copy or subscribe to using an hCalendar-to-iCalendar proxy service:
<divclass="vevent"
> <divclass="summary"
>O'Reilly Emerging Technology Conference</div> <abbrclass="dtstart"
title="20050306"
>Mar 6</abbr>- <abbrclass="dtend"
title="20050310"
>9, 2006</abbr> <divclass="location"
>Manchester Grand Hyatt, San Diego, CA</div> <aclass="url"
href="http://events.oreilly.com/pub/e/403">Permalink</a> </div>
Note the use of the abbr
element to present an abbreviated human-readable date and represent a precise machine-readable ISO 8601 date in the title
attribute. For a complete list of hCalendar class names, more hCalendar details, and hCalendar proxy services, see the hCalendar specification at http://microformats.org/wiki/hcalendar.
Get Web Design in a Nutshell, 3rd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.