« Validate your blog’s HTML for SEO and a performance boost | Home | Use your blog to proudly promote WordPress »
Google Adsense for search code doesn’t pass XHTML validation
By braddock | May 19, 2008
I found it pretty odd that the web 2.0 company on the bleeding edge of coding uses a web form that doesn’t pass W3C validation.
A big part of the Google Adsense program is the Adsense for search box you can add to your web site. Your readers put in some search terms, click the great sounding paid links at the top of the results page, and you’re retiring to Florida soon.
I have the Adsense for search box on a few of my WordPress blog pages. I think it looks good, and it does get used.
In order for your site to be a supercharged SEO monster it should pass validation though. This helps the Google bot scour your site. Google’s own code is causing the problem here.
While the terms of service for using Google Adsense say that modifying code is a no no, it seems they may have capitulated on this one.
This was the one thing keeping my site from validating. It’s fixed now, and here’s the solution:
Change this:
<input type=“radio” name=“sitesearch” value=“” checked id=“ss0″></
input>
to this:
<input type=“radio” name=“sitesearch” value=“” checked=“checked”
id=“ss0″></input>
That's it, now the code validates.
Related posts:
Topics: Blogging with Google |





