W3C home > Mailing lists > Public > public-html-data-tf@w3.org > November 2011

Re: CSS styling of Microdata, RDFa, Microformats

From: Jeni Tennison <jeni@jenitennison.com>
Date: Fri, 18 Nov 2011 21:56:15 +0000
Cc: public-html-data-tf@w3.org, Tantek Çelik <tantek@tantek.com>
Message-Id: <2835D58F-7659-4D23-8CC3-A57CC0714A93@jenitennison.com>
To: Dan Brickley <danbri@danbri.org>
Dan,

I added CSS support as a consideration when choosing a HTML data syntax at [1]. The text reads:

  Because microformats generally use classes to mark up data within an 
  HTML page, it is easy to use CSS to style those elements based on their 
  type. For example .hcard .n { font-weight: bold; } will enbolden any 
  person's name. This is a little harder with microdata (where the selector 
  might be something like [itemtype~="http://microformats.org/profile/hcard"]   
  [itemprop~="n"]) or RDFa (where it might be [typeof~="foaf:Person"] 
  [property~="foaf:name"]). If you are planning to style your page based on 
  the data embedded within it, you may find it easier to use microformats 
  than either microdata or RDFa.

Does that sound reasonable?

Jeni

[1] http://www.w3.org/wiki/Choosing_an_HTML_Data_Format#Syntax_Considerations
-- 
Jeni Tennison
http://www.jenitennison.com
Received on Friday, 18 November 2011 21:56:52 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 18 November 2011 21:56:54 GMT