Valid Source Code Helps SEO?

24 Comments June 23, 2007 / Posted in SEO/SEM, Web Development

I just read an interesting article at Search Engine Journal claiming valid source code helps spiders better index your site. I’ve known about the importance of validating, but I had no idea it affected how your site was indexed.

What is Validation?

According to the W3C:

Validation is a process of checking your documents against a formal Standard, such as those published by the World Wide Web Consortium (W3C) for HTML and XML-derived Web document types, or by the WapForum for WML, etc. It serves a similar purpose to spell checking and proofreading for grammar and syntax, but is much more precise and reliable than any of those processes because it is dealing with precisely-specified machine languages, not with nebulously-defined human natural language.

The article gives a few tips including:

  • Use W3C to make sure your site is viewable in major browsers, especially Firefox & Safari
  • Test your site on mobile browsers
  • Check for all errors in HTML coding and fix them when possible

If you are interested in learning about the benefits of valid source code and how it could help SEO, then read SEO & Importance of Valid Source Code.

Tweet This Did you enjoy this article? If so, Re-Tweet this post!
24 Comments... What do you think? Subscribe via RSS
  1. A Tentative Personal Finance Blog said on June 23rd, 2007 at 8:28 pm

    My site looks horrible on a mobile device. Any advice on how to make it look slick?

  2. John Lampard said on June 23rd, 2007 at 11:24 pm

    Good article. In a lot of cases if you are working with XHTML and CSS anyway making your code standards compliant can sometimes be quite simple. Even just changing things like the ampersand (&) to & in your code, or closing image tags with /> rather than > can make all the difference.

  3. Gary Lee said on June 24th, 2007 at 12:46 am

    argh . they didn’t teach this stuff in web design 101 at Irvine . . . .

  4. Florchakh said on June 24th, 2007 at 3:32 am

    Do you give your trust, Nate? Take a look at this and tell me - are they reliable?

    http://validator.w3.org/check?uri=http%3A%2F%2Fwww.searchenginejournal.com

  5. Frank said on June 24th, 2007 at 3:24 pm

    I think that it’s a little unfair to penalise sites for sloppy code, if this is indeed the case. The web should be about the ability to publish and have a voice. When only a small percentage of site owners are coders then it disadvantages everyone else. I believe compliance is a good thing that everyone should strive for but to negatively impact your SERPS for non-compliance is a bit harsh.

  6. Make Money With Funds said on June 24th, 2007 at 3:25 pm

    I know that Adsense bot will not parse your site if it’s not valid… so, it really does help.

  7. Make Money With Funds said on June 24th, 2007 at 3:27 pm

    Sure. Make sure it’s valid as xHTML Transitional plus check if it’s readable when CSS is turned off.
    Firefox has a feature to turn off CSS: Menu->View->Page Style -> No Style.

    If it looks ugly and unreadable without CSS, then you need to work on the site’s layout…

  8. Nate Whitehill said on June 24th, 2007 at 6:22 pm

    Just because their site doesn’t validate does not mean they are not a trustworthy source. I have actually read a lot of good material at Search Engine Journal. Even Google’s homepage does not validate. It is actually pretty rare when a site is perfectly XHTML valid. Nonetheless, they raise some interesting points as does John Lampard about how pages determine content vs. code when there are tags left open and other inconsistencies in the source code.

  9. David Airey :: Creative Design :: said on June 25th, 2007 at 1:31 am

    With the amount of third party code on my site it would take an age to validate my archives. I found YouTube videos in particular to be a source of incorrect validation.

  10. Florchakh said on June 25th, 2007 at 3:24 am

    Let’s say there is a batch of tags that you have to use correctly. But definitely it doesn’t means that your page must be valid to be ok with Google, right?

  11. Natron said on June 25th, 2007 at 9:34 am

    I have a few sites that are 100% valid xHTML, didn’t notice any improvement in SERPs. I still think it’s good practice, “Leave no rock unturned”

  12. Patrick Lee said on June 26th, 2007 at 2:29 pm

    Valid code is good in that one may avoid a lot of layout/formatting bugs that could otherwise creep into a design. But saying that valid code helps SEO is really oversimplifying things. As another commenter noted, Google’s own home page doesn’t even validate.

    One thing that DOES help SEO is using external CSS and JS files instead of cramming it all into your HTML files. This increases your keyword density because Google makes no distinction between actual text, HTML formatting, CSS, JS, or anything else. This is also better from a maintenance and performance standpoint, so it’s good all around.

  13. Nomar said on July 5th, 2007 at 11:36 pm

    hmm I didnt know thise.. good article :)

  14. Blogging Tips said on October 16th, 2007 at 2:25 am

    Validating is an important thing, whether we like it or not - but I’ve known a few sites that look differently in different browsers although they are validated, so I guess validation doesn’t catch everything.

  15. Wtricks said on October 24th, 2007 at 5:26 am

    I have paid more attention lately to a cleaner code and I think this can help me more. by coding myself the layouts and working on the SEO as I type I do give myself more chances to actually increase my sites’ chances for a better place in the searches and some more traffic.

  16. Mike Touch said on February 27th, 2008 at 3:49 pm

    Reading the original post I got worried but then I read the comments and saw how a site doesn’t have to be validated to get good rankings. This is good to know as my site doesn’t have valid XHTML at the moment.

  17. Utah SEO said on July 6th, 2008 at 2:20 am

    I agree it may be a minimal quality score factor but nothing beyond minimal. If you are optimizing a site and look at ROI on time spent this one should be at the bottom of the list.

  18. s said on July 14th, 2008 at 10:36 pm

    a

  19. [...] thanks to an article that Nate Whitehill pointed out, I recently discovered that using Web Standards is also very important for Search [...]

  20. Interesting Links « Organized Mashup said on June 24th, 2007 at 5:46 pm

    [...] Valid Source Code Helps SEO? [...]

  21. It’s LinkBombing Time! - 6/25/07 said on June 25th, 2007 at 7:58 am

    [...] Readers Add Value, But Do Comments? – A detailed explanation about readers leaving comments. Valid Source Code Helps SEO? Quick Notes on Navigation – Some insights of Robinson Go on a blog’s navigation Why Affiliate [...]

  22. [...] Add Value, But Do Comments? – A detailed explanation about readers leaving comments. Valid Source Code Helps SEO? Quick Notes on Navigation – Some insights of Robinson Go on a blog’s navigation Why [...]

  23. [...] Valid Source Code Helps SEO? Quick Notes on Navigation – Some insights of Robinson Go on a blog’s navigation Why Affiliate Links are the best Form of Blog Advertising – Guest post of Matt Jones over at ProBlogger.net explaining why affiliates are the best form of blog advertising. Of course! For the top commentators: [...]

  24. It’s LinkBombing Time! - 6/25/07 said on January 17th, 2008 at 5:07 am

    [...] Valid Source Code Helps SEO? Quick Notes on Navigation – Some insights of Robinson Go on a blog’s navigation Why Affiliate Links are the best Form of Blog Advertising – Guest post of Matt Jones over at ProBlogger.net explaining why affiliates are the best form of blog advertising. [...]

Join the discussion by leaving a comment...

How do I change my avatar?

Go to gravatar.com and upload your preferred avatar.