SEO Correlation Between Code and Search Engine Rankings
-
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?
-
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.
-
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.
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
SERP Ranking
Hi everyone, I'm struggling to figure out why our website has dramatically changed and is ranking far worse than ever. We were top for around 10 keywords, and had over 4 high traffic keywords in position 1. I think the website needs updating (as it's magento 1.7), and that the competition is increasing. Taking our eye off the ball has been a huge mistake. Could anyone advise on what the next steps would be to start increasing to a better serp rank? These two are own main ranking pages:
Intermediate & Advanced SEO | | mg33dev
https://www.mediagenic.co.uk/
https://www.mediagenic.co.uk/budget-roller-banner.html Any advice or pointers would be absolutely awesome. Thanks0 -
How to Improve Search Ranking from 10 to Top 5
Hi, I was just optimizing a page and have improved it from Page 2 -> Page 1 ; Position 15->10 for now by basic onpage seo edits. I want to understand how I would take it to next level by getting it to Top 5 or Top 3 results. My keyword and page are as follows (all checked in Google India (.in) ) Page - https://nirogam.com/ayurvedic-treatment-home-remedies-chikungunya/
Intermediate & Advanced SEO | | pks333
Keyword - ayurvedic treatment for chikungunya What steps can I take to go from 10 - Top 3 or Top 5 results here? I was checking the Rank tracker & moz Grader for this - got all ticks except adding keyword in URL. Would this be recommended of changing the URL after it's ranking so well to just add this keyword in the same?0 -
SSL for SEO?
To obtain an SEO benefit from an SSL is there any particular type or brand which is recommended or has a track history? It seems you can pay anything between $20 and $???? (For that matter whatever you want to pay!). Any experience gratefully accepted! Thanks
Intermediate & Advanced SEO | | seoman100 -
Do search engines crawl links on 404 pages?
I'm currently in the process of redesigning my site's 404 page. I know there's all sorts of best practices from UX standpoint but what about search engines? Since these pages are roadblocks in the crawl process, I was wondering if there's a way to help the search engine continue its crawl. Does putting links to "recent posts" or something along those lines allow the bot to continue on its way or does the crawl stop at that point because the 404 HTTP status code is thrown in the header response?
Intermediate & Advanced SEO | | brad-causes0 -
My website (non-adult) is not appearing in Google search results when i have safe search settings on. How can i fix this?
Hi, I have this issue where my website does not appear in Google search results when i have the safe search settings on. If i turn the safe search settings off, my site appears no problem. I'm guessing Google is categorizing my website as adult, which it definitely is not. Has anyone had this issue before? Or does anyone know how to resolve this issue? Any help would be much appreciated. Thanks
Intermediate & Advanced SEO | | CupidTeam0 -
Rankings dropped - Why?
At the end of November a client site dropped significantly in the rankings. The drop effected almost all the keyphrases we monitor. Historically the homepage has always ranked higher than the sub-pages - however now it seems Google is no longer ranking the home page, and instead ranking the sub-pages, just far far lower down. Any ideas what could cause this?
Intermediate & Advanced SEO | | cottamg0 -
Yahoo rankings anomaly?
Two days ago I went from ranking outside the top 50 to ranking #1 and #4 for two great terms on Yahoo. Now two days later I don't rank in the top 50 again. I sure wish I knew what that blip on the radar was all about. It would be great to get ranked again. Seems like a mystery. I have not heard of this happening on Yahoo before. Maybe it was a problem with the open link explorer? Anyone see this happen before? Thank you, Boodreaux
Intermediate & Advanced SEO | | Boodreaux0 -
Any SEO suggestions for my site?
Site in question: http://bit.ly/Lcspfp Does anyone have any suggestions for any on-site SEO that would benefit my website? Any recommendations, big or small are appreciated.
Intermediate & Advanced SEO | | RichardTaylor1