HTML5 valid Google+ Button - Bad value publisher for attribute rel
Posted
by
mrtsherman
on Pro Webmasters
See other posts from Pro Webmasters
or by mrtsherman
Published on 2012-04-13T17:08:06Z
Indexed on
2012/04/13
17:43 UTC
Read the original article
Hit count: 304
html5
|google-plus-one
I recently migrated my website from xhtml transitional to html5. Specifically so that I could make use of valid block level anchor tags. <a><div /></a>
.
When running validation I encountered the following error:
Bad value publisher for attribute rel on element link: Keyword publisher is not registered.
But according to this page, that is exactly what I am supposed to do.
https://developers.google.com/+/plugins/badge/#connect
My code:
<link href="https://plus.google.com/xxxxxxxxxxxxxxxx" rel="publisher" />
<a href="https://plus.google.com/xxxxxxxxxxxxxxx?prsrc=3" style="text-decoration:none;">
<img src="https://ssl.gstatic.com/images/icons/gplus-16.png" alt="" style="border:0;width:16px;height:16px;"/>
</a>
I can't figure out how to implement this in an html5 compliant way. Can anyone help?
© Pro Webmasters or respective owner