[whatwg] microformats, microdata, and custom data attributes
andreluis.pt at gmail.com
Wed Apr 20 13:45:05 PDT 2011
On 19 April 2011 22:36, Tab Atkins Jr. <jackalmage at gmail.com> wrote:
> On Tue, Apr 19, 2011 at 2:24 PM, Justin Karneges <justin at affinix.com>
> > On Tuesday 19 April 2011 03:27:30 Rob Crowther wrote:
> >> Justin Karneges wrote:
> >> > Given that it is meant primarily as a data exchange protocol, explicit
> >> > better, so I'm preferring Microdata instead of Microformats here.
> >> The strength of the Microformats community is in helping to define the
> >> vocabulary, that's a different issue from the format you'll use to
> >> represent it.
> > Ah, I simply assumed these were two competing approaches. Does this mean
> > Microdata has no community behind it to work on vocabulary?
> Microdata is a syntax for encoding vocabularies into an HTML page,
> similar to how class/rel can be a syntax for encoding vocabularies.
> The vocabularies themselves can be defined largely ignorant of the
> encoding syntax, as long as the vocab's underlying data-structure ends
> up being more-or-less tree-based (vocabularies defined for RDF are
> officially graph-based, but in practice can usually be treated as
> > In any case, I think the Person object defined by data-vocabulary.orgshould
> > work for my purposes. But, if I feel the need to invent something new, I
> > propose it to the Microformats community first if that's the right
> process. I
> > am quite new to these communities.
Hmm.. I'm not really sure we need anything more than simple HTML semantics
(given by the spec) and a small microformat/microdata.
I'll use <q> or <blockquote> in the example.
<span class="vcard"><a href="http://example.com/justin" class="url
<q cite="http://example.com/justin/msg/12345">I agree.</q>
<p class="vcard">— <a class="url fn" href="http://example.com/justin
If you prefer microdata:
(just the Person bit)
<p itemscope itemtype="http://data-vocabulary.org/Person">
<a itemprop="url" href="http://example.com/justin">
If you still think you need a more formal vocabulary, please read:
> Sounds acceptable. The Microformats community is friendly and open,
> as far as I've experienced. Have fun!
More information about the whatwg