I was updating my schedule over on the DOM Scripting site and I thought I’d share a little tip for any microformateers who savour typographical correctness.
Most hCalendar events have both a start date (dtstart
) and an end date (dtend
). Both use the abbr
pattern:
<abbr class="dtstart" title="20061122">November 22nd</abbr>
<abbr class="dtend" title="20061123">November 23rd</abbr>
Date ranges like that are often written as:
November 22nd–23rd
Or:
22nd–23rd November
Either way, that piece of text features a range of dates. The correct punctuation for a closed range is the en-dash. If you’re marking up an event in hCalendar, try to to use the corresponding HTML entity:
<abbr class="dtstart" title="20061122">November 22nd</abbr>
–
<abbr class="dtend" title="20061123">23rd</abbr>
The HTML entity is –
. In decimal that’s –
.
For more information on en-dashes (and em-dashes), read The Trouble With EM ’n EN (and Other Shady Characters) over on A List Apart. For more general typographical tips, try Reading Design by Dean Allen and Typography Matters by Erin Kissane, both of whom are great writers. And, of course, there’s Richard’s excellent practical guide to web typography.
If I come across any other typographical titbits for microformats, I’ll be sure to flag them up.