Skip to content Skip to sidebar Skip to footer

Google +1 Code Validation Error: Missing Attribute

My code: I get this error: there is no attribute 'annotation' element 'g:plusone' undefined Why?

Solution 1:

You have two choices

  1. Change to using this style markup <div class="g-plusone" data-size="tall" ... ></div>

  2. Add the XML NS for google's <g: syntax to the <html tag of the document. Now if only Google would share where that xml namespace is located... (So really, just try option 1)

Solution 2:

There is no attribute called "annotation" for any element recommended in the W3C standards. Google probably uses it to parse for some backend processing. If you want the +1 element, you cannot have a W3C standards code.

Check this thread. So what if custom HTML attributes aren't valid XHTML?

Post a Comment for "Google +1 Code Validation Error: Missing Attribute"