Page is a not externally linkable
rocknbil - 3:12 pm on Mar 3, 2012 (gmt 0)
If your g+ button still works, you did, but won't be able to use all the +1 attributes. I've seen that solution around and apparently it does work. You could also do it with XHTML and validate the g: namespace (untested, but have seen this solution:)
<html xmlns:g="http://base.google.com/ns/1.0">
The other is to use Javascript to add G's attributes to HTML4 elements:
<div class="g-plusone" id="gplusone"></div>
<script type="text/javascript">
g1=document.getElementById("gplusone");
g1.setAttribute("data-size","medium");
g1.setAttribute("data-count","true");
</script>
A few purist corrections, that are just good habits to form:
Quote your attributes. Also lower casing attributes makes it much easier to switch between doctypes if you need to.
width="16" height="16">
not
WIDTH=16 HEIGHT=16 ALIGN=bottom>
Align, valign, and other presentation attributes are deprecated. I'm surprised it didn't kick a warning. Use CSS for presentation requirements instead.
In 4, the language attribute is deprecated, you only need type (which is NOT needed in 5.) Yours is empty anyway, and same comment on case.
<script type="text/javascript">
//
</script>