h-event

(Difference between revisions)

Jump to: navigation, search
m (r)
(Initial dump from mf2 page)
Line 1: Line 1:
-
#redirect:[[microformats2#h-event]]
+
<entry-title>h-event</entry-title>
 +
<span class="h-event vcard"><span class="p-name fn">[[User:Tantek|Tantek Çelik]]</span> (<span class="p-role role">Editor</span>)</span>
 +
----
 +
<dfn style="font-style:normal;font-weight:bold">h-event</dfn> is a simple, open format for publishing events on the web. h-event is one of several open [[microformats|microformat]] draft standards suitable for embedding data in HTML/HTML5.
 +
 
 +
h-event is the [[microformats-2]] replacement for [[hCal]].
 +
 
 +
== Example ==
 +
Here is a simple event example:
 +
 
 +
<source lang=html4strict>
 +
<div class="h-event">
 +
  <h1 class="p-name">Microformats Meetup</h1>
 +
  <p>From <time class="dt-start" datetime="2013-06-30 12:00:00">on 30<sup>th</sup> June 2013, 12:00</time>
 +
    to <time class="dt-end" datetime="2013-06-30 18:00:00">18:00</time>
 +
    at <span class="p-location">Some bar in SF</span></p>
 +
 
 +
  <p class="summary">Get together and discuss all things microformat-related.</p>
 +
</div>
 +
</source>
 +
 
 +
=== Get started ===
 +
The class '''<code>h-event</code>''' is a ''root class name'' that indicates the presence of an h-event.
 +
 
 +
'''p-name''', '''p-summary''', '''dt-start''' and the other h-event property classnames listed below define ''properties'' of the h-event.
 +
 
 +
See [[microformats-2-parsing]] to learn more about property classnames.
 +
 
 +
== Properties ==
 +
 
 +
Inside an element with class '''h-event''':
 +
 
 +
* '''<code>p-name</code>''' - event name/title
 +
* '''<code>p-summary</code>''' - short summary of the event
 +
* '''<code>dt-start</code>''' - datetime the event starts
 +
* '''<code>dt-end</code>''' - datetime the event ends
 +
* '''<code>dt-duration</code>''' - the total duration of the event
 +
* '''<code>p-description</code>''' - a more detailed description of the event
 +
* '''<code>u-url</code>''' - a permalink for the event
 +
* '''<code>p-category</code>''' - event category(ies)/tag(s)
 +
* '''<code>p-location</code>''' - where the event takes place, optionally a nested [[h-adr]]
 +
* '''<code>p-geo</code>''' - geophysical location of the event, optionally a nested [[h-geo]]
 +
* '''<code>p-latitude</code>''' - decimal latitude
 +
* '''<code>p-longitude</code>''' - decimal longitude
 +
 
 +
Experimental properties currently in use in the wild but not part of the official h-entry spec:
 +
 
 +
* '''<code>p-attendee</code>''' - a person attending the event, optionally a nested [[h-card]]
 +
 
 +
== Status ==
 +
'''h-event''' is a microformats.org draft specification. Public discussion on h-event takes place on [[h-event-feedback]], the #microformats [[irc]] channel on irc.freenode.net, and [http://microformats.org/discuss/mail/microformats-new/ microformats-new mailing list].
 +
 
 +
h-event is ready to use and implemented in the wild, but for backwards compatibility you should also mark h-events up as classic [[hCal]] events.
 +
 
 +
== Property Details ==
 +
(stub, to be expanded)
 +
 
 +
<code>p-location</code> is often a postal address, optionally marked up with [[h-adr]], for example:
 +
 
 +
<source lang=html4strict>
 +
<p class="p-adr h-adr">
 +
  <span class="p-street-address">17 Austerstræti</span>
 +
  <span class="p-locality">Reykjavík</span>
 +
  <span class="p-country-name">Iceland</span>
 +
</p>
 +
</source>
 +
 
 +
== Examples in the wild ==
 +
Real world in the wild examples:
 +
 
 +
* ... add uses of h-event you see in the wild here.
 +
 
 +
== Background ==
 +
This work is based on the existing [[hCal]] and [[vcalendar]] specifications.
 +
 
 +
== Design Principles ==
 +
 
 +
(stub, expand)
 +
 
 +
== See Also ==
 +
 
 +
* [[microformats-2]]
 +
* [[microformats-2-parsing]]
 +
* [[h-adr]]
 +
* [[h-geo]]
 +
* [[h-card]]
 +
* [[hCalendar]]
 +
 
 +
[[Category:Draft Specifications]]

Revision as of 17:11, 13 June 2013

Tantek Çelik (Editor)


h-event is a simple, open format for publishing events on the web. h-event is one of several open microformat draft standards suitable for embedding data in HTML/HTML5.

h-event is the microformats-2 replacement for hCal.

Contents

Example

Here is a simple event example:

<div class="h-event">
  <h1 class="p-name">Microformats Meetup</h1>
  <p>From <time class="dt-start" datetime="2013-06-30 12:00:00">on 30<sup>th</sup> June 2013, 12:00</time>
     to <time class="dt-end" datetime="2013-06-30 18:00:00">18:00</time>
     at <span class="p-location">Some bar in SF</span></p>
 
  <p class="summary">Get together and discuss all things microformat-related.</p>
</div>

Get started

The class h-event is a root class name that indicates the presence of an h-event.

p-name, p-summary, dt-start and the other h-event property classnames listed below define properties of the h-event.

See microformats-2-parsing to learn more about property classnames.

Properties

Inside an element with class h-event:

Experimental properties currently in use in the wild but not part of the official h-entry spec:

Status

h-event is a microformats.org draft specification. Public discussion on h-event takes place on h-event-feedback, the #microformats irc channel on irc.freenode.net, and microformats-new mailing list.

h-event is ready to use and implemented in the wild, but for backwards compatibility you should also mark h-events up as classic hCal events.

Property Details

(stub, to be expanded)

p-location is often a postal address, optionally marked up with h-adr, for example:

<p class="p-adr h-adr">
  <span class="p-street-address">17 Austerstræti</span>
  <span class="p-locality">Reykjavík</span>
  <span class="p-country-name">Iceland</span>
</p>

Examples in the wild

Real world in the wild examples:

Background

This work is based on the existing hCal and vcalendar specifications.

Design Principles

(stub, expand)

See Also

Categories

h-event was last modified: Wednesday, December 31st, 1969

Views