The Moz Q&A Forum

    • Forum
    • Questions
    • My Q&A
    • Users
    • Ask the Community

    Welcome to the Q&A Forum

    Browse the forum for helpful insights and fresh discussions about all things SEO.

    1. SEO and Digital Marketing Q&A Forum
    2. Categories
    3. Intermediate & Advanced SEO
    4. SEO Correlation Between Code and Search Engine Rankings

    SEO Correlation Between Code and Search Engine Rankings

    Intermediate & Advanced SEO
    3 3 831
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as question
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • PaulDylan
      PaulDylan last edited by

      I posted this on my blog and wanted to get everyones opinion on this (http://palatnikfactor.com/2011/06/07/seo-correlation-between-code-and-search-engine-rankings/)

      I’m always looking to see what top ranking websites may be doing to get the rankings they do. One of the tasks of any SEO I guess is to really analyze competitors, right?

      I want to really stress that what I am writing here is completely opinion based and have not (due to time) validated this correlation enough but would like to get the discussion started. Nevertheless, I did enough research to see that there may be a correlation between code validation and top ranking websites, at least for certain queries where the number of real big players/brands is limited or non-existent.

      So, what do I mean? http://validator.w3.org/ validates code on websites. This tool shows you errors and warnings that may be making it harder for search engines to crawl your website. Looking at top competitors for certain niches, I was surprised to find that top sites had very few errors compared to 2+ page rankings. That’s not to say that all the sites on the first page had fewer errors (cleaner code) than websites in the 2<sup>nd</sup> page plus. However, again, top ranking websites for keywords that I was looking at had cleaner code which may have a correlation in regards to organic rankings.

      What’s your take? Does this have any effect in regards to SEO?

      1 Reply Last reply Reply Quote 0
      • MarieHaynes
        MarieHaynes last edited by

        It's totally conjecture, but I would say that code validation doesn't have any bearing on ranking.  Some of my early websites that I created that are not validated are ranking pretty well.  (But then...I haven't checked whether my competitors are validated at all.)

        Here's my theory...if a site is validated it means that some quality work has been put into it.  So, if someone put that kind of quality work into the coding, they likely have put good quality work into the SEO and every other aspect of the site.

        1 Reply Last reply Reply Quote 1
        • RyanKent
          RyanKent last edited by

          I have a lot of thoughts on this subject. If I was to make a blog entry on this topic, it would span multiple pages or have to be broken down into sub-topics.

          I do think there is a correlation between good code and search engine rankings. I do not think there is a correlation between a w3c validated page and search engine rankings. The validator is not current enough, nor flexible enough, to accommodate the real world situations which websites encounter.

          Example A: HTML 5 is recognized by all major browsers. W3C validation of HTML 5 is still experimental. A specific example that applies to SEO is the canonical tag. According the the W3C validation site, the canonical tag is not currently valid. Take a snippet of HTML5 code which passes validation, add a canonical meta tag to the header, and the code will no longer pass validation. This is a direct conflict between best practices and validation.

          Example B:  The world's most popular web page, google.com, does not pass validation. Matt Cutts discussed the topic. In short, they had a choice between providing code which validated, or code which worked. They chose to go with the working code.

          Example 😄 The standard facebook widget code, youtube video code, and other popular code does not pass validation.

          Whenever I design a website, I check the code in the validator to look for errors. Initially, I will find numerous errors related to code outside of my control such as social sharing widgets or youtube videos. Once I remove that code, the page often validates. I have researched the issue and it is possible to modify the facebook code or youtube code so that it still functions and passes validation. Doing so requires extra effort, it provides absolutely zero benefit other then saying "hey, I pass validation", and there are often drawbacks such as having to add extra javascript to your site which can otherwise be viewed as unnecessary code.

          1 Reply Last reply Reply Quote 1
          • 1 / 1
          • First post
            Last post
          • Onsite search engines that are SEO friendly - which do you recommend
            McTaggart
            McTaggart
            1
            3
            74

          • How does putting a trial sign up code mid-blog post effect SEO? Do you think it will make my content seem less pleasing, therefor decrease the page rank??
            HiveDigitalInc
            HiveDigitalInc
            0
            4
            72

          • Creating a site search engine while keeping SEO factors in mind
            msphotography
            msphotography
            0
            3
            145

          • Does alt tag optimization benefit search rankings (not image search) at all?
            TommyTan
            TommyTan
            0
            4
            1.1k

          • Is Content Location Determined by Source Code or Visual Location in Search Engine's Mind?
            Everett
            Everett
            0
            6
            135

          • What is best practice SEO approach to re structuring a website with multiple domains and associated search engine rankings for each domain?
            JimmyFlorida
            JimmyFlorida
            0
            2
            335

          • Should Site Search results be blocked from search engines?
            wissamdandan
            wissamdandan
            0
            2
            175

          • Is there any correlation to time and search ranking?
            AlanMosley
            AlanMosley
            0
            16
            700

          Get started with Moz Pro!

          Unlock the power of advanced SEO tools and data-driven insights.

          Start my free trial
          Products
          • Moz Pro
          • Moz Local
          • Moz API
          • Moz Data
          • STAT
          • Product Updates
          Moz Solutions
          • SMB Solutions
          • Agency Solutions
          • Enterprise Solutions
          • Digital Marketers
          Free SEO Tools
          • Domain Authority Checker
          • Link Explorer
          • Keyword Explorer
          • Competitive Research
          • Brand Authority Checker
          • Local Citation Checker
          • MozBar Extension
          • MozCast
          Resources
          • Blog
          • SEO Learning Center
          • Help Hub
          • Beginner's Guide to SEO
          • How-to Guides
          • Moz Academy
          • API Docs
          About Moz
          • About
          • Team
          • Careers
          • Contact
          Why Moz
          • Case Studies
          • Testimonials
          Get Involved
          • Become an Affiliate
          • MozCon
          • Webinars
          • Practical Marketer Series
          • MozPod
          Connect with us

          Contact the Help team

          Join our newsletter
          Moz logo
          © 2021 - 2026 SEOMoz, Inc., a Ziff Davis company. All rights reserved. Moz is a registered trademark of SEOMoz, Inc.
          • Accessibility
          • Terms of Use
          • Privacy