[uf-discuss] Microformats versus Microdata

36 views
Skip to first unread message

Martin Leese

unread,
Jun 8, 2012, 9:12:27 PM6/8/12
to microforma...@microformats.org
Hi,

I have decided to add microformats to my
HTML 4.01 website. I have added hCard as
this seems to be well supported, and am now
looking at also adding hAudio/hMedia and
hResume. These, however, are all still draft
standards, and are not as well supported as
hCard. This presents me with a problem.

Do I implement these draft microformats, or
wait until I upgrade my website to HTML 5, and
then deploy Microdata? (I will not be
upgrading to HTML 5 until the standard is
ratified, and that looks to be a few years away
yet. If I add Microdata to HTML 4.01 then the
HTML will not verify, so I will not do that.)

It is already clear that Microdata will be well
supported. On the other hand, my impression
of microformats is that the draft standards are
moribund. Is this a fair impression?

Many thanks,
Martin
--
Martin J Leese
E-mail: martin.leese stanfordalumni.org
Web: http://members.tripod.com/martin_leese/
_______________________________________________
microformats-discuss mailing list
microforma...@microformats.org
http://microformats.org/mailman/listinfo/microformats-discuss

Micky Hulse

unread,
Jun 9, 2012, 1:09:16 AM6/9/12
to Microformats Discuss
On Fri, Jun 8, 2012 at 6:12 PM, Martin Leese
<martin...@stanfordalumni.org> wrote:
> It is already clear that Microdata will be well
> supported.  On the other hand, my impression
> of microformats is that the draft standards are
> moribund.  Is this a fair impression?

Good questions!

I did not even realize that there was a microdata format until I read
your e-mail.

I wonder if you could just change your HTML DTD to an HTML5 and go from there?

In other words, change this:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>

... to this:

<!doctype html>
<html>

From what I know, most HTML4 strict elements should work just fine
under HTML5. You don't need to worry about changing all the tags to
<section> or <header> (for example)... You could do that later, but in
the meantime you could start working with the microdata formats on
specific elements.

Anyway, just a thought. :)

Great questions!

Cheers,
M

Mathias Panzenböck

unread,
Jun 9, 2012, 8:40:11 AM6/9/12
to microforma...@microformats.org
Well, Google recommends microdata before microformats:
http://support.google.com/webmasters/bin/answer.py?hl=en&answer=99170

Stephen Paul Weber

unread,
Jun 9, 2012, 1:43:20 PM6/9/12
to Microformats Discuss
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Somebody claiming to be Martin Leese wrote:
>hResume. These, however, are all still draft
>standards, and are not as well supported as
>hCard. This presents me with a problem.

I'm not sure about hMedia/hAudio, but hResume is fairly well supported.
draft vs not-a-draft shouldn't hinder your implementation :)

As far as microdata, that's sort of a seperate thing. Microdata is in flux
and there are no community-driven vocabularies or formats for it (there are
some WHATWG-driven and Google-driven formats, but that's hardly a community
consensus).

- --
Stephen Paul Weber, @singpolyma
See <http://singpolyma.net> for how I prefer to be contacted
edition right joseph
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iQIcBAEBCAAGBQJP04s4AAoJENEcKRHOUZzeYVgQANNLAuFpiTmX2l/9VM5xyUwo
H7cYc/MCWiO/X7pbKnASp6HFCmVKTNkWs4Si6D0h/H3gasyLVfD2Hru4d/X4/gKn
N71bgslN9P1OZ5TyTjLM6XvhYC4x21aZ4Qgzqke5i6gpabm6Q8mqKiNt9+fFZFP5
18L2xTZGPkPQl13bbDkFwTta4sWGsGWUd41j3LpvBucq4leKBXx7aN4G5utPD0w/
d0s3YcEq2AP2FY6jNzDv5hvokp+ReubYMBnwDK9o0LFUQS1R2UXsxmHM/z1iS+2A
U/dpxnbOkUCtO6T+wlbcT07s4OSG7lmyLCx8Gqmu2Olk5ahES3GhWklv2y7M4sSe
DTjn/wU0KQwW4W3PSTGFCJDXxLvcCcoFqY0YPJ+JnUW1Y6p+GSXiaYaBQyoCAOp4
g3dnGvvtgyVf2moqmhUZ1T5lOQw5LHbb5bN482UPoDYd76VYVaWw4PWikxZKFnQC
LRbgMdHfLZytxcJ4x7asSjjwbPKmif7ePLL0g9JBCDlNylidarUEShrnZYdYKyHP
mvQ7BPlIE+3avN1H8UsoI5mk0SHa1zpTupS441HElVF1KykM1sybhY3avA1oS92+
Ys64asOk/Kj6ZfVB8lHSEBqeiXwxq7QIO40iF6rgWmSzz2W79AHlJAkuM9yY+k0l
rD2dY6O1PoTrBNUvGj77
=DaH4
-----END PGP SIGNATURE-----

Micky Hulse

unread,
Jun 9, 2012, 2:11:52 PM6/9/12
to Microformats Discuss
On Sat, Jun 9, 2012 at 10:43 AM, Stephen Paul Weber
<singp...@singpolyma.net> wrote:
> As far as microdata, that's sort of a seperate thing.  Microdata is in flux
> and there are no community-driven vocabularies or formats for it (there are
> some WHATWG-driven and Google-driven formats, but that's hardly a community
> consensus).

Interesting.

This seems pretty official:

<http://www.schema.org/>

But, like you say, it's hardly a community consensus. :(

Purely from a readability perspective, I like that microdata is not
using CSS classes; on the other hand, I'm not keen about pointing
towards a schema (itemtype=) for every little piece of content on my
page. Clearly there are advantages and disadvantages to both
techniques.

Micky Hulse

unread,
Jun 9, 2012, 2:19:10 PM6/9/12
to Microformats Discuss
On Sat, Jun 9, 2012 at 11:11 AM, Micky Hulse <mickyhul...@gmail.com> wrote:
> <http://www.schema.org/>

I thought this was interesting:

[[

Q: Why microdata? Why not RDFa or microformats?

Focusing on microdata was a pragmatic decision. Supporting multiple
syntaxes makes documentation for webmasters more complex and
introduces more overhead in terms of defining new formats.
Microformats are concise and easy to understand, but they don't offer
an open extensibility mechanism and the reuse of the class tag can
cause conflicts with website CSS. RDFa is extensible and very
expressive, but the substantial complexity of the language has
contributed to slower adoption. Microdata is the most recent
well-known standard, created along with HTML5. It strikes a balance
between extensibility and simplicity, and is most suitable for
building the schema.org. Google and Yahoo! have in the past supported
both microformats and RDFa for certain schemas and will continue to
support these syntaxes for those schemas. We will also be monitoring
the web for RDFa and microformats adoption and if they pick up, we
will look into supporting these syntaxes. Also read the section on the
data model for more on RDFa.

]]

-- <http://schema.org/docs/faq.html>

Stephen Paul Weber

unread,
Jun 9, 2012, 2:23:25 PM6/9/12
to Microformats Discuss
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Somebody claiming to be Micky Hulse wrote:
>Purely from a readability perspective, I like that microdata is not
>using CSS classes

Ah, that's a common misconception. HTML classes have nothing to do with
CSS. You can style classes with CSS because you can style *many* selectors
(ids, tag names, and any other attributes) with CSS. The class attribute
has no more to do with CSS than the tag name or the id or anything else.
HTML classes provide a mechanism for extending the semantics of the
document, which many microformats make use of (along with other useful HTML
semantics such as the href attribute of <a> tags, etc).

- --
Stephen Paul Weber, @singpolyma
See <http://singpolyma.net> for how I prefer to be contacted
edition right joseph
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iQIcBAEBCAAGBQJP05ScAAoJENEcKRHOUZzeTSYQAMqSBtCE5CdDe5rKVen5WM5q
67n2Ed1C9Nh4/TXxOrJiK8zzVQAflM3hSVhOGXSinzhJqsQ2g/z0CJ226LTMuUQu
wcZLDh85xU2ypkVlKO4dt1r4eZaoCv5AkNyluHudFIsPNOygA/Ne1XI9KNFPf5u8
g7gVEizoo8McwxavwubxvIlye/Mkcbs+w3XgTJxw3NtupEV5Bs/OaWzl0LCNUamh
VqzNqk/C5UPdXwP2VTU+kTAeDke0vMtlnSUOt8pKcoWcfqMnzTq5vM9GCNVuuava
U48ynzfaLjkNwB7A4WJteNxuTiLx4Oq1qgMhAYJQTngVh8K3Dz9wvi7OaPGeVomA
TWkHGhT/GfEWF2Qqbv1atsiAhnWldlqh0oL5qQnvEdwP335l3yNCjMJM11sq1z6w
2nMdgCrp7uFaSww1mcnGGYAVt4XVXxBMAtVqxxERXQFBaO2WDbJKk7mMgE+TO8+3
H4eafqqk6veDAbnYb5HuKHM6lxMYKw17y5Y5HUNBeJ+6dPZsarduSzi3F9KqD6yx
HW63Bu84kpR2HWOgrAx1bGc9tONhAaJjjrgTfpXtbudsgE3TCnjm/P9bEZd3GDqQ
+JMwBkjh6EDlm6OO3AKC4lSe4aZwPiUcTtXx6MweaVk0NNRo5hviK5stgUjK7LyB
GMW7f+XV5ll6xyu+EE13
=2RMT
-----END PGP SIGNATURE-----

Micky Hulse

unread,
Jun 9, 2012, 2:49:14 PM6/9/12
to Microformats Discuss
Hi Stephen,

On Sat, Jun 9, 2012 at 11:23 AM, Stephen Paul Weber
<singp...@singpolyma.net> wrote:
> Somebody claiming to be Micky Hulse wrote:
>>Purely from a readability perspective, I like that microdata is not
>>using CSS classes
>
> Ah, that's a common misconception.   HTML classes have nothing to do with
> CSS.  You can style classes with CSS because you can style *many* selectors
> (ids, tag names, and any other attributes) with CSS.  The class attribute
> has no more to do with CSS than the tag name or the id or anything else.
> HTML classes provide a mechanism for extending the semantics of the
> document, which many microformats make use of (along with other useful HTML
> semantics such as the href attribute of <a> tags, etc).

Thanks for the clarification, I really appreciate it.

I should have clarified... I don't mind that microformats use CSS
classes, I just think my HTML looks a tad more readable when using
microdata. For example:

<https://gist.github.com/2898578>

(Sorry that the HTML is different)

Maybe that's not the best example, but my gut feeling is that I prefer
the microdata because it's not using the class attributes. Of course,
my opinion is based on personal preference. For example:

<div class="sig vcard">

vs.

<div class="sig" itemscope itemtype="http://schema.org/Person">

Clearly the microdata is more markup, but I like that the "data
format" has bee separated from the class attribute.

Going back to the microdata FAQ:

"...reuse of the class tag can cause conflicts with website CSS."

I think they make a good point there.

...

I've read about microformats on/off for years now (I even bought the
Microformat book when it first came out), and I am new to microdata
(just digging my teeth into it now)... I'm keeping an open mind, but
there's something in my gut that wants to go with microdata over
microformats.

On the other hand, who's to say one can't use both? Right?

O.K., crawling back into my hole now. Sorry if I hijacked this thread. :(

Thanks again Stephen!

Cheers!
Micky

Martin Leese

unread,
Jun 9, 2012, 3:02:30 PM6/9/12
to microforma...@microformats.org
Micky Hulse <mickyhul...@gmail.com> wrote:

> On Sat, Jun 9, 2012 at 10:43 AM, Stephen Paul Weber wrote:
>> As far as microdata, that's sort of a seperate thing. ?Microdata is in flux
>> and there are no community-driven vocabularies or formats for it (there are
>> some WHATWG-driven and Google-driven formats, but that's hardly a
>> community consensus).
>
> Interesting.
>
> This seems pretty official:
> <http://www.schema.org/>
>
> But, like you say, it's hardly a community consensus. :(
>
> Purely from a readability perspective, I like that microdata is not
> using CSS classes; on the other hand, I'm not keen about pointing
> towards a schema (itemtype=) for every little piece of content on my
> page. Clearly there are advantages and disadvantages to both
> techniques.

The big thing is that Microdata is supported by
W3C, visit:
http://www.w3.org/TR/microdata/

This means that, in the long term, Microdata
will win in the marketplace and microformats
will lose. My problem is what to do in the short
and medium terms.

While it will be possible to deploy both, this
would be twice the work for zero additional
benefit.

Regards,
Martin
--
Martin J Leese
E-mail: martin.leese stanfordalumni.org
Web: http://members.tripod.com/martin_leese/

Stephen Paul Weber

unread,
Jun 9, 2012, 6:13:43 PM6/9/12
to Microformats Discuss
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Somebody claiming to be Micky Hulse wrote:
>On Sat, Jun 9, 2012 at 11:23 AM, Stephen Paul Weber
><singp...@singpolyma.net> wrote:
>> Somebody claiming to be Micky Hulse wrote:
>I should have clarified... I don't mind that microformats use CSS
>classes

Sorry, just going to point out again (pet peeve of mine), there are no "CSS
classes", only "HTML classes". :P

>I just think my HTML looks a tad more readable when using
>microdata. For example:
>
><https://gist.github.com/2898578>
>
>(Sorry that the HTML is different)

Maybe. That will be a matter of personal taste. Those examples look
basically the same to me, except that the microdata-based on uses a URI for
a part of its vocabulary.

>Maybe that's not the best example, but my gut feeling is that I prefer
>the microdata because it's not using the class attributes. Of course,
>my opinion is based on personal preference. For example:
>
><div class="sig vcard">
>
>vs.
>
><div class="sig" itemscope itemtype="http://schema.org/Person">
>
>Clearly the microdata is more markup, but I like that the "data
>format" has bee separated from the class attribute.

The class attribute is itself a "data format", encoding types that the
element matches. The fact that people happen to style classes with CSS is
sort of irrelevant: if I used microdata I would style microdata attributes
using CSS as well.

>Going back to the microdata FAQ:
>
>"...reuse of the class tag can cause conflicts with website CSS."
>
>I think they make a good point there.

Only if you somehow (a) can't change your CSS and (b) never style with
anything other than classes. Like I said above: I would use CSS on
itemprop/itemtype as well, in which case their use affects my styles as
well.

>(I even bought the
>Microformat book when it first came out)

There's a book? That's weird...

>On the other hand, who's to say one can't use both? Right?

Sure, you can definitely use both.

So, in the end it's your own choice, I'll just outline breifly why I prefer
microformats:

* Re-using existing HTML semantics (class, <a>, <img>, rel, etc) instead of
inventing something new.
* Community consensus on vocabularies based on previously-established
formats (vCard, ATOM, etc). Not that microdata couldn't use good
vocabularies, since it's just a syntax, but currently the popular
vocabularies come out of WHATWG/Google and not the community.
* Long-standing standards with existing widely-deployed implementations

YMMV

- --
Stephen Paul Weber, @singpolyma
See <http://singpolyma.net> for how I prefer to be contacted
edition right joseph
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iQIcBAEBCAAGBQJP08qWAAoJENEcKRHOUZzewq4QAMbmrWqSBDBLvWBnSqUDRrZe
IOzLyso/UUWv+E85C8heuV4HOnZY78ngIv/S97qtpeMOl3E3IhpeQSzQYfcBDOXm
vb/+EBVMdJbnE0T1LdRfwuFpJulOKwwvjUwgUg20ShuAeBeuz1oO3B8D8zenFv/v
PTCD7tmp6/OE1OJ7S3W58ho4fUm4Q6oOnY3aj53eX1/eSsVuX+BcGkvdUqk5Vt9z
ssGJY3ioH5v0be91IEdo0lItBiqlqahiaE4xSIekZnfhil9mOIcGxMhi+NBO2e7s
cLUXy5C66AhL2SmCSUJARliheXSvh3Vfp9S4xpe8Q/g4RfRbluaSNel6iI9euFZi
n04vMkJPDGM2uVedv/9am2VM2ewXr0L9zk+Sl5jaxN3Bmd0KaR/Gsti5VdNjPQL8
KihUlBTEI0moj7BDBPOGosDxQayy0gnuGfeSngLOrknXXqh5GN6PpEE0KN6uw2JE
TnlYVDL1VVP9iILCYxCCJTa8FgoAPphILB2OBgtfpa+cBlSSQv4FHsO8YHM+qcMp
MBIZouN/V5aUbThuxSiejRDpYSHhDeAjGhK4vEuy9LXj5dDVOhnju1qXvvnbvdDo
wx0QeSgV04tRtPh5Vzo1wjAQJ2h7eMnlLyJyDK6whJ4EmmsSwu4RfZ+pgrC6TfZ0
4omnmmsS5Zar5I8A45qs
=+3ds
-----END PGP SIGNATURE-----

Micky Hulse

unread,
Jun 9, 2012, 8:12:40 PM6/9/12
to Microformats Discuss
Howdy again! :)

On Sat, Jun 9, 2012 at 3:13 PM, Stephen Paul Weber
<singp...@singpolyma.net> wrote:
> Sorry, just going to point out again (pet peeve of mine), there are no "CSS
> classes", only "HTML classes". :P

Doh! Sorry, I did not catch that the first time. :(

My tendency is to say CSS classes when referring to the values of the
"class" attribute of an html tag; I think that's why I call it a class
- I am referring to the value(s) of the HTML class attribute. Lol,
sorry for my ignorance if I used the wrong term(s).

> The class attribute is itself a "data format", encoding types that the
> element matches.  The fact that people happen to style classes with CSS is
> sort of irrelevant: if I used microdata I would style microdata attributes
> using CSS as well.

I hear what you are saying and that's a good observation.

I think we're talking about two different things here. :D

I agree and understand everything you have said.

With that said, I don't think that there's anything wrong with me not
liking the fact that microformats use HTML classes. For me, simply
put, it's more about clutter and readability. Based on my few tests
within the last couple days, microdata just seems more clean.

Again, what the heck do I know... I'm open minded... I think I need to
spend some more time playing with the two formats. :)

>>Going back to the microdata FAQ:
>>"...reuse of the class tag can cause conflicts with website CSS."
>>I think they make a good point there.
>
> Only if you somehow (a) can't change your CSS and (b) never style with
> anything other than classes.  Like I said above: I would use CSS on
> itemprop/itemtype as well, in which case their use affects my styles as
> well.

Interesting! I don't think I would style itemprop/itemtype... I guess
I'm oldschool like that. :D

About not being able to change your CSS: I think it depends on the
situation/context. At my current job, I work with around 20 third
party companies where my CSS and HTML templates are hosted on their
servers and mixed-in with their CSS and HTML; based on my experience,
it's best for me to namespace my CSS classes to avoid style conflicts.
With 100% of these third party companies, there's always some amount
of their CSS that I can't touch.

>>(I even bought the
>>Microformat book when it first came out)
> There's a book?  That's weird...

I know, right! :D

"Microformats: the book"
<http://microformats.org/2007/04/19/microformats-the-book>

>>On the other hand, who's to say one can't use both? Right?
> Sure, you can definitely use both.
> So, in the end it's your own choice, I'll just outline breifly why I prefer
> microformats:

Those are very good reasons to use microformats. I'm going to let this
all sink in and experiment with both.

Thanks so much for your pro tips and advice Stephen, I really appreciate it.

Also, sorry to the original poster for my hijacking of the thread. :(

Have a nice day all!

Cheers,
Micky

Reply all
Reply to author
Forward
0 new messages