[uf-discuss] dtstart and dtend with value class pattern

Scott Reynen scott at randomchaos.com
Mon May 25 13:01:59 PDT 2009


On May 25, 2009, at 11:47 AM, Chris Cressman wrote:

> I'd like to mark up the example below with a dtstart and dtend. I've
> done this in the past using the abbr design pattern. I'd like to use
> the value class pattern instead. However, I haven't been able to find
> any examples of the value class pattern that include both a dtstart
> and dtend. Can someone recommend markup for my example below? I'd like
> to include machine readable datetimes without changing the human
> readable text. Thank you.
>
> Chris
>
>
> Example: <p>Saturday, June 13, 2009, 4pm&#x2013;7pm</p>
>
> dtstart: 2009-06-13T20:00:00Z
>
> dtend: 2009-06-13T23:00:00Z

By my reading of the value class pattern [1], you want this:

<p><span class="dtstart"><span class="value-title"  
title="2009-06-13T20:00:00Z"> </span>Saturday, June 13, 2009, 4pm</ 
span>&#x2013;<span class="dtend"><span class="value-title"  
title="2009-06-13T23:00:00Z"> </span>7pm</span></p>

[1] http://microformats.org/wiki/value-class-pattern

Peace,
Scott



More information about the microformats-discuss mailing list