This post was most recently updated on December 28th, 2016
Schema.org: is a collaboration between Bing, Google, Yahoo and Yandex to provide for a set of markups that will be used by search engines to fetch rich and relevant search results.
You can use rich snippet tool to see what data has been extracted from your page and what will appear in the search and how.
Microdata: Google suggests microdata but microformats are also supported and accepted equivalently.
Microdata contains conventions as HTML attributes to label data as specific type of information- for example address, review, movies, events, business, etc. Each entity has its own properties. It uses simple attributes in HTML markup to assign descriptions to the data under a tag. Ex.
1 2 3 4 5 6 7 8 |
<div itemscope itemtype="http://data-vocabulary.org/Person"> My name is <span itemprop="name">Bob Smith</span> but people call me <span itemprop="nickname">Smithy</span>. Here is my home page: <a href="http://www.example.com" itemprop="url">www.example.com</a> I live in Albuquerque, NM and work as an <span itemprop="title">engineer</span> at <span itemprop="affiliation">ACME Corp</span>. </div> |
Microformat: Microformats are conventions known as entities used on pages to describe data under specific types. In general microformats use class attribute in HTML tags to assign brief and descriptive names to entities and their properties. Ex.
1 2 3 4 5 6 7 8 9 10 |
<div class="vcard"> <img class="photo" src="www.example.com/bobsmith.jpg" /> <strong class="fn">Bob Smith</strong> <span class="title">Senior editor</span> at <span class="org">ACME Reviews</span> <span class="adr"> <span class="street-address">200 Main St</span> <span class="locality">Desertville</span>, <span class="region">AZ</span> <span class="postal-code">12345</span> </span> </div> |
RDFa: RDFa is a way to label content to describe specific type of information. Each entity has number of properties. In general RDFa uses simple attributes in XHTML tags to assign brief and descriptive names to entities and their properties.
1 2 3 4 5 6 7 8 |
<div xmlns:v="http://rdf.data-vocabulary.org/#" typeof="v:Person"> My name is <span property="v:name">Bob Smith</span>, but people call me <span property="v:nickname">Smithy</span>. Here is my homepage: <a href="http://www.example.com" rel="v:url">www.example.com</a>. I live in Albuquerque, NM and work as an <span property="v:title">engineer</span> at <span property="v:affiliation">ACME Corp</span>. </div> |