Re: CSS styling of Microdata, RDFa, Microformats

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 UTC