Sat 12 May 2007
SEO Test - Google Prefers Valid HTML > CSS
Posted by Shaun AndersonWell we’ve started to get some results in from our qualitative SEO Mythbuster Test #1 (Does Google Like Valid Code?) and the results we have….is yes!
So here’s a re-cap of the first SEO Mythbuster Test:
- 4 Pages on the hobo site
- New but Duplicate Content of Course
- All html pages
- All page names garbled letters to ensure no preference in Google. Will Google read the pages by alphabetical order, date created etc? Who knows - maybe we’ll find out this too.
- 1 Valid Html + CSS
- 1 Valid HTML + Invalid CSS
- 1 Invalid HTML + Valid CSS
- 1 Invalid HTML + Invalid CSS
- Anchor Text same text so as not to influence Google (of course this isn’t good for accessibility having links to different pages using the same text phrase)
- As far as we know we’ve tried to duplicate the pages including page titles and meta-descriptions etc. What this test should also test is will Google, today at any least, collect at least one page from this duplicate content or will it ignore them all.
- We assume every thing is equal apart from validation - that includes duplicate keyword descriptions, keywords and title elements etc.
- In this first test we’ll put it in a folder. This may make everything go supplemental but we can wait and seo
So lets see what page Google likes best from this simple test. Google should follow these links below and read the pages, apply duplicate content filters to the pages, and pick one of the pages for it’s index? Right? Which one will it choose?
Well - the result is clear. From these 4 pages Google managed to pick the page with valid css and valid html as the preffered page to include in it’s index! Ok, it might be a bit early to see if the four pages in the test eventually appear in Google but on first glance it appears Google spidered the pages, examined them, applied duplicate content filters as expected, and selected one to include in search engine results.
It just happens that Google seems to prefer the page with valid code as laid down by the W3C (World Wide Web Consortium).
The W3C was started in 1994 to lead the Web to its full potential by developing common protocols that promote its evolution and ensure its interoperability.
What is the W3C?
- W3C Stands for the World Wide Web Consortium
- W3C was created in October 1994
- W3C was created by Tim Berners-Lee
- W3C was created by the Inventor of the Web
- W3C is organized as a Member Organization
- W3C is working to Standardize the Web
- W3C creates and maintains WWW Standards
- W3C Standards are called W3C Recommendations
How The W3C Started
The World Wide Web (WWW) began as a project at the European Organization for Nuclear Research (CERN), where Tim Berners-Lee developed a vision of the World Wide Web.
Tim Berners-Lee - the inventor of the World Wide Web - is now the Director of the World Wide Web Consortium (W3C).
W3C was created in 1994 as a collaboration between the Massachusetts Institute of Technology (MIT) and the European Organization for Nuclear Research (CERN), with support from the U.S. Defense Advanced Research Project Agency (DARPA) and the European Commission.
W3C Standardising the Web
W3C is working to make the Web accessible to all users (despite differences in culture, education, ability, resources, and physical limitations).
W3C also coordinates its work with many other standards organizations such as the Internet Engineering Task Force, the Wireless Application Protocols (WAP) Forum and the Unicode Consortium.
Summary
It’s clear at least Google seems to prefer valid code. We will keep an eye on the results and see if Google decides to include the other pages, or anything changes.
If these results are correct then their may be a clear case to make sure pages you create are valid html and css - this might be the difference in whether or not you rank higher in Google serps than your competitors.
Hurray for Accessible Website Design!!
Thanks for visiting the Hobo Blog! Why not subscribe to our Feed for free internet marketing tips! We really welcome any feedback on our articles, so don't be scared to leave a comment either!

Cerbera at Accessify pointed out - “These tests inevitably mean the pages are not identical. As such, whether it’s the conformance of the markup or the effect of content being offset by a few bytes creating microscopic differences in ranking is impossible to say.
They also send slightly different Last-Modified and Expires headers:
1. Last-Modified: 08 May 2007 00:48:54. Expires: 13 May 2007 11:18:17.
2. Last-Modified: 08 May 2007 00:48:56. Expires: 13 May 2007 11:18:25.
3. Last-Modified: 08 May 2007 00:48:57. Expires: 13 May 2007 11:18:03.
4. Last-Modified: 08 May 2007 00:48:59. Expires: 13 May 2007 11:18:31.
Even though the modification dates are sequential, the Expires header for page “c” is earlier than all the others. It may be that Google picked what seemed like the most current one.”
This is a very good point, Ben.
Comment by Cerbera — May 13, 2007 @ 12:39 am
Thank you for doing this test! I am in the minority that defends the importance of Validation. In our opinion Validation is the cherry on the top of the SEO cake. Our website has validated pages and they DO rank very well for our keywords/phrases. Likewise our client’s that made the extra investment for our time to validate their sites have also seen very good ranking results (along with our SEO).
In our opinion the timimg issue mentioned above is irrelavent because all pages were indexed with the same process, coding and content drive relevance and the outcome speaks for itself.
Validation takes time and skill. For a web designer this is where character shows . . . are you willing to do the right thing even when no one may notice? But then again . . . maybe it is good for us that our competition doesn’t get it.
Comment by Jim Hobson — May 13, 2007 @ 2:57 pm
Pingback by Google prefers HTML / CSS valid W3C code | John Shehata Blog — May 14, 2007 @ 4:02 am
Pingback by SEOish.com » Blog Archive » Does W3 Validation Matter? — May 14, 2007 @ 9:47 pm
Nice test.
Why don’t do the same test with Yahoo?
I think that yahoo take more care for valid xhtml than google.
Comment by Nemesis Web Design — May 15, 2007 @ 1:28 pm
The answer for Yahoo really doesn’t matter that much; they’ve lost too much market share for it to be important.
I think this test is a great idea, but with duplicate content, it might just come down to which page Google discovered first.
Comment by Forrest — May 18, 2007 @ 5:58 am
Content is nothing without seo. SEO is nothing without content.
Hittail, hittail, hittail!
Its possible all this means is that google has lots of little tests which give certain pages indexing priority; maybe validated code is one of those tests?
And on some level it makes sense for code that passes the strictness of an sgml/html validator would/should/could be crawled first, since those pages probably take a less memory and cpu time to crawl, assuming it’s not the duplicate content myth at work here.
Extremely interesting test in any case.
The only scary thing about validation after the fact is that it’s horrible to do by hand; hopefully someone will write a good html to xhtml convertor for all that messed up frontpage and dreamweaver code. Hopefully frontpage 2007/expression designer is much better as it’s purported to be.
NVU and html/xhtml tidy is the bloggers best friend.
Comment by Heather Paquinas — May 24, 2007 @ 6:53 pm
A webmaster commented that their is no way I could outrank my competitors because my website is full of html errors.
I have my site checked in W3C, It really has more than a hundred html errors. I only know basic html,so what I did is trial and error technique. It took me 8 hour before my site passed the validation.
It feels great to have that W3C logo in my site.
Comment by Robert — May 27, 2007 @ 12:11 pm
“A webmaster commented that their is no way I could outrank my competitors because my website is full of html errors.” - Robert this is incorrect advice.
You can rank well with invalid html - as long as it is not so screwed up Google cannot read it.
Valid HTML is just, well, cleaner - and good practice. Some of the pages on this site do not validate because we’ve been tinkering about in the background but they still do well in Google.
This seo test was just to see if Google would like the validated page “all else being equal” - in reality, nothing is ever equal ie number and quality of links, keyword density….
Comment by Shaun Anderson — May 27, 2007 @ 6:13 pm
Pingback by Google and w3c valid html? From Hobo SEO | Threadwatcher.com — July 5, 2007 @ 9:29 am
Hm…certainly an interesting result.
On the one hand, I think the test would need redoing, of course, to attempt to eliminate some of the variables suggested above.
Even still, it’s nice to see an actual live test to explore the issue of W3C standards in SEO.
Comment by Brian Turner — July 10, 2007 @ 9:36 am
Cheers Brian (haven’t we met on the UKBiz Forums? Thanks for dropping by).
Comment by Shaun Anderson — July 14, 2007 @ 9:25 pm
Yep, that we have.
Comment by Brian Turner — July 16, 2007 @ 7:59 pm
This is extremely interesting. I’m looking at revamping a popular site with XHTML/CSS instead of tables. I’d love some actual concrete evidence from Google on this.
Does anyone know of any similar articles/tests?
Chris.
Comment by Chris — August 24, 2007 @ 12:12 pm
Pingback by Data Tramp » Getting seen by the blind — September 12, 2007 @ 2:50 am
Pingback by Shaun Anderson SEO » The Best Hobo Web Blog Posts of 2007 — January 3, 2008 @ 5:18 am
Nice test.
Why don’t do the same test with Yahoo?
I think that yahoo take more care for valid xhtml than google.
Comment by Oyun indir — January 25, 2008 @ 4:49 pm
Pingback by Content Validation - WebProWorld — February 17, 2008 @ 6:47 am
As far as I know, Javascript influences the aspects of the accessbility and SEO of a website, how about PHP?
Comment by Fine Arts — March 10, 2008 @ 9:55 pm
Pingback by Wwohn : W3C validatie nuttig voor SEO? — April 9, 2008 @ 10:37 am
Pingback by Wwohn.com : Does W3c validation provide benefits to SEO — April 15, 2008 @ 8:38 am
Pingback by Family Safe Searching Blog » Review of Web Links Directory — April 21, 2008 @ 2:58 pm
Whenever I’ve performed SEO work with clients I’ve always told them that validation isn’t as important as content. Still, with the quality of Web Design today validation should not be a problem for anyone and your Google rank would obviously benefit from a clean page structure. I think that’s where validation helps the most. A valid web page just makes sense.
Comment by Mike — May 2, 2008 @ 12:59 am
The Web sites must be always validated against W3C standards regardless of the SEO effect, because such sort of programming style indicates about professionalism of the Web design company and capabilities of the team in particular. The output generated will look better in all browsers anyway and this will benefit the end users as well.
Comment by Tom — May 5, 2008 @ 7:38 am
Pingback by SpiderMarket » The HTML on the Google homepage is invalid — May 6, 2008 @ 10:54 pm