Monday, December 26, 2011

What is Schema.org ?


Now the web search engine results are more complicated and search engines are introducing new search algorithm, seo webmaster's works are in little trouble. when you write a web pages with HTML you use the tags to display your data more efficient to user but the search engine crawlers always find harder to show the exact result to the user

Example:

<h1>Titanic</h1>

here, you just display string in heading format, but the text represent two meanings here, one its about titanic was a passenger liner that struck an iceberg on her maiden voyage another thing you could refer to the hugely successful James Cameron movie.

so here crawler hard to find the exact meaning and more difficult for search engines to intelligently display relevant content to a user.

Schema.org provides a collection of shared vocabularies webmasters can use to mark up their pages in ways that can be understood by the major search engines: Google, Microsoft, and Yahoo!

Here, you know how its all done


Let's start with a concrete example. Imagine you have a page about the movie titanic that page contain with a link to a movie info, information about the director, and so on. Your HTML code might look something like this:

<div>
  <h1>Titanic</h1>
  <span>Director: James Cameron (born August 16, 1954) </span>
  <span>epic romance</span>
  <a href="http://en.wikipedia.org/wiki/Titanic_%281997_film%29">Trailer</a>
</div>


To begin, identify the section of the page that is "about" the movie Titanic. To do this, add the itemscope element to the HTML tag that encloses information about the item, like this:

<div itemscope>
  <h1>Titanic</h1>
  <span>Director: James Cameron (born August 16, 1954) </span>
  <span>epic romance</span>
  <a href="http://en.wikipedia.org/wiki/Titanic_%281997_film%29">Trailer</a>
</div>


By adding itemscope, you are specifying that the HTML contained in the <div>...</div> block is about a particular item.

But it's not all that helpful to specify that there is an item being discussed without specifying what kind of an item it is. You can specify the type of item using the itemtype attribute immediately after the itemscope.

<div itemscope itemtype="http://schema.org/Movie">
  <h1>Titanic</h1>
  <span>Director: James Cameron (born August 16, 1954) </span>
  <span>epic romance</span>
  <a href="http://en.wikipedia.org/wiki/Titanic_%281997_film%29">Trailer</a>
</div>


This specifies that the item contained in the div is in fact a Movie, as defined in the schema.org type hierarchy. Item types are provided as URLs, in this case http://schema.org/Movie.

If you want to know more go now schema.org

0 comments:

Post a Comment

Twitter Delicious Facebook Digg Stumbleupon Favorites More

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | Web Hosting Coupons