Page is a not externally linkable
- Code, Content, and Presentation
-- HTML
---- Getting Google Code to Validate Using the W3C Validator


Sally_Stitts - 7:10 pm on Mar 1, 2012 (gmt 0)


I thought I would revisit the issue of page validation, using [validator.w3.org...]
I fixed all MY issues, but there remained 2 pieces of Google code that failed to validate.

The first "code hiccup" was the Red Google Plus button.
Here is the code which Google provided -
<A HREF="https://plus.google.com/107520370013#*$!#*$!#*$!" rel=author>
<IMG SRC="http://ssl.gstatic.com/images/icons/gplus-16.png" WIDTH=16 HEIGHT=16 ALIGN=bottom></A>

The W3C validator said "no alt text".
Here is the modified code which fixed the error -
<A HREF="https://plus.google.com/107520370013#*$!#*$!#*$!" rel=author>
<IMG SRC="http://ssl.gstatic.com/images/icons/gplus-16.png" ALT="Red Google Plus Button" WIDTH=16 HEIGHT=16 ALIGN=bottom></A>

The second "code hiccup" was the Google +1 button.
Here is the code which Google provided -
<g:plusone></g:plusone><SCRIPT LANGUAGE="" type="text/javascript">(function() {
var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
po.src = 'https://apis.google.com/js/plusone.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
})();</SCRIPT>

Here is the modified code which fixed the error -
<div class="g-plusone"></div><SCRIPT LANGUAGE="" type="text/javascript">(function() {
var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
po.src = 'https://apis.google.com/js/plusone.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
})();</SCRIPT>

Apparently, the <g:plusone></g:plusone> code is fine for HTML5, but unacceptable for HTML4.
Does Google assume that everyone is using HTML5.? BAD ASSUMPTION! Really bad. HTML5 is still experimental, is it not?

With these 2 Google code changes, my pages now validate 100%.

Did I get it right? I am not a programmer.
Please comment.
Thank you.


Thread source:: http://www.webmasterworld.com/html/4423970.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com