Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

RDFa Vs. Microdata

RDFa in XHTML is a w3c standard. Microdata is mentioned as a HTML 5 API. My questions are:

  1. Is microdata also a w3c standard? If yes, why we need 2 similar standards?

  2. People say using microdata is simpler than RDFa. Except for this, what are the main differences between these two?

Thank you in advance Manoj

like image 243
Manoj S. Avatar asked Apr 13 '12 22:04

Manoj S.


People also ask

What is the difference between microdata and JSON LD?

With JSON-LD, a JavaScript object is inserted into the HTML of your page to define data, whereas microdata uses HTML tags and attributes to define data. In its structured data guidelines, Google states that it recommends JSON-LD over microdata for web content.

Why should we use microdata?

Microdata is a set of tags that aims to make annotating HTML elements with machine-readable tags much easier. Microdata is a great place for beginners to start because it's so easy to use.

What is microdata in SEO?

Microdata. An open-community HTML specification used to nest structured data within HTML content. Like RDFa, it uses HTML tag attributes to name the properties you want to expose as structured data. It is typically used in the page body, but can be used in the head.

What is RDFa schema?

RDFa (Resource Description Framework in Attributes) is a type of data format recommended by the World Wide Web Consortium (W3C) for embedding RDF statements in HTML, XHTML, and various XML dialects. Programmers use the framework (RDF) to further specify web content with metadata.


1 Answers

  1. Yes, Microdata is also a W3C standard: HTML Microdata. There are two standards because RDFa was designed to address the requirements of the RDF community, and the WHATWG HTML5 editor found the living RDFa spec too advanced, so designed his own thing.

  2. This is a very subjective question, but I'd say the advantages of RDFa are: it makes it easier to combine multiple vocabularies/schemas, it has better support for datatypes and the like, and is compatible with all the other RDF-based standards in case you care about that. The advantage of Microdata is that it's simpler to grasp for HTML authors. Here's a big comparison of both formats (done by and RDFa guy, so perhaps a bit biased).

like image 165
cygri Avatar answered Oct 10 '22 05:10

cygri