« "Content ripping free from its page" | Main | Microformats, RDF, Semantic Web and search »

hCalendar essentials

hCalendar is a powerful microformat that will allow your events to be distributed across web sites, media and devices.

Very much like hCard, hCalendar is comprised of standardized classes appended to XHTML tags. The following is the essential guide to hCalendar.

You can code your very own hCalendar very easily. There are only three required elements that may be appended to any XHTML tag.

  1. vcalendar or vevent (this is the root tag and all other classes must fall within this tag)
  2. dtstart
  3. summary

An example of the most basic hCalendar item is this:

June 24, 2008 11:30Student orientation

If you want to add more information to your events, you can use the following classes appended to any XHTML tag.

Description hCalendar identifier
vevent can be within vcalendar, but either is recognized as an hCalendar entry class="vcalendar" or class="vevent"
Date and time your event begins in ISO format class="dtstart"
The physical location of your event class="location"
A URL related to the event a class="url"
The event end time class="dtend"
The duration of the event class="duration"
You may categorize your events class="category"
Description class="description"
You can really pinpoint your location with latitude and longitude information class="geo"

This is an example of a more complex hCalender event.

Resources

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)

The views and opinions expressed in this page are strictly those of the page author. The contents of this page have not been reviewed or approved by the University of Minnesota.