11 July 2012

Google plus one button XHTML compliant

Introduction:

+1 buttons let people who love your content recommend it on Google search
If you added a Google +1 button to your website, you certainly noticed that the Google +1 button is not valid at all.

Installation:
Include the google plus one javascript file somewhere on your page between and tags.



Add this special tag in the location where you would like your plus one button to appear. Your tag will look something like this:


W3C error:
element "g:plusone" undefined

Correction:
The following XHTML code is W3C compliant for the plus one button.
  1. Include the google plus one javascript file somewhere on your page between and tags.
  2. Add this special tag in the location where you would like your plus one button to appear. Your tag will look something like this:

No comments:

Post a Comment