Saturday, August 27, 2011

Google+ Snippet - Define the article name, image, URL, description

On top of the ability to +1 an article and share it directly on Google+, Google+ has provided code snippets to allow all including the advertisers to define the to-be-shared article's name, image, URL and description.

Here is some sample code on how it works:
<body itemscope itemtype="http://schema.org/Article">
<h1 itemprop="name">This is the article name</h1>
<img itemprop="image" src="thumbnail.jpg" />
<p itemprop="description">This is the description of the article.</p>
</body>

» Doing more with the +1 button, more than 4 billion times a day | Official Google Blog

No comments:

Post a Comment

Do provide your constructive comment. I appreciate that.