Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

I am wondering whether to use Microdata or RFDa to mark information for search engines on my Webapplication. Google supports and has documentation for both. But i was not able to find a summary comparing both formats and giving suggestion on which one to use.

share|improve this question
    
there are currently no tags for "RFDa" or "Microdata" and I cannot create new tags, yet. –  Hendrik Brummermann Sep 7 '10 at 19:09
    
Tags added for you –  John Conde Sep 7 '10 at 19:19
    
@John, Thank you. –  Hendrik Brummermann Sep 7 '10 at 19:20
    
I'm on the fence on this one, but as asked it's somewhat subjective and may be better as community wiki, or if you added more details for your situation. –  JasonBirch Sep 7 '10 at 20:09
add comment

4 Answers

up vote 2 down vote accepted

Choosing which one is better for you is (IMO) somewhat subjective. Here are a couple factors that may help you to make an informed decision:

There are likely other factors specific to your situation...

share|improve this answer
add comment

Microformats are much simpler to understand and implement, using additional classes on existing HTML elements (or additional span/div elements where necessary).

RDFa on the other hand is more complex and can be difficult to implement, using attributes like xmlns:v and values like v:Person. Like JasonBirch says it's a little problematic for non-XHTML pages (and as such won't validate, if that matters to you).

share|improve this answer
    
You are comparing microformats to RDFa, but this question is about microdata. –  unor Oct 1 '12 at 0:41
add comment

Google seems to prefer microdata but also seems to It seems they support them all.

share|improve this answer
    
I'm not sure where you're getting that they prefer microdata; they have similar pages for RDFa and microformats –  JasonBirch Sep 7 '10 at 19:41
    
I missed those. I only saw them linking to that page in the sidebar and assumed they didn't cover the others out of preference for microdata. –  John Conde Sep 7 '10 at 19:53
    
yeah, their site nav is horrible –  JasonBirch Sep 7 '10 at 20:29
add comment

Main differences between Microdata and RDFa

  • Microdata is still a Working Draft (2012-10-25) merely a Working Group Note (2013-10-29). RDFa is a finished Recommendation (2013-08-22) (first Recommendation back in 2008).

  • Microdata can be used in HTML(5) only. RDFa is markup-independent ("to express structured data in any markup language") and can already be used in HTML 4.01, HTML5, XHTML, ….

  • Microdata is a relatively new "invention". RDFa is based on the RDF model (RDFa is a RDF serialization format), the foundation of the Semantic Web.

  • If a Microdata parser stumbles upon an unknown item type (resp. vocabulary), it must not try to make use of it. RDF(a) parsers may try to make use of unknown vocabularies (which may work because vocabularies are typically itself described in RDF, e.g. with RDFS).

Note that almost all vocabularies are designed in/for RDF(a). With Microdata, most users seem to use only the schema.org vocabulary, but this one can be used with RDFa, too.

Some argue that Microdata is easier to understand/use than RDFa. I don’t think that it’s true, especially not with RDFa Lite, which is sufficient "for most day-to-day needs". You can read the whole RDFa Lite specification in 10-15 minutes.

See also

  • my answer on Stack Overflow: future of RDFa and Microdata
  • my answer on Programmers SE: RDFa vs. Microdata vs. Microformats
  • The HTML Data Guide "aims to help publishers and consumers of HTML data use it well. With several syntaxes and vocabularies to choose from, it provides guidance about how to decide which meets the publisher's or consumer's needs. It discusses when it is necessary to mix syntaxes and vocabularies and how to publish and consume data that uses multiple formats."
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.