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>

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?


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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 20:08:25 UTC