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
-
SEO Drop
Over the last few months my rank has dropped by around half and for the life of me I can’t see why. There are no warnings on Google Console. Am I missing something? Website: thespacecollective.com
Intermediate & Advanced SEO | | moon-boots0 -
Interested ranking results
Hello, I have different pages that are written on the same model. I updated their content 2 weeks ago. Some of those climbed to 1 st page or beginning or 2 nd some didn't move or stayed where they originally were, 3 rd of 4 th page ? My question is whether there is a longer delay for some of them to rank (due to the term being more competitive for example) or if I should look somewhere else in maybe something that I wrote in the content of the pages that ranked versus those than didn't move. Thank you,
Intermediate & Advanced SEO | | seoanalytics0 -
Search engine submission - Urgent
Is it necessary to submit a new site to search engines? I have a brand-new site I purchased a few days ago which I didn't think to check until after I purchased it, But it has not been indexed by Google!
Intermediate & Advanced SEO | | seoman10
The domain was registered three months ago, and probably the website wouldn't have been designed until after that.
But I'm still left puzzling why the site is not indexed by Google. Any ideas? Thanks in advance.0 -
Is it OK to have Search Engines Skip Ajax Content Execution?
I recently added some ajax pages to automatically fill in small areas of my site upon page loading. That is, the user doesn't have to click anything. Therefore when Google and Bing crawl the site the ajax is executed too. However, my understanding is that does not mean Google and Bing are also crawling the ajax content. I actually would prefer that the content would be not be executed OR crawled by them. In the case of Bing I would prefer that the content not even be executed because indications are that the program exits the ajax page for Bing because Bing isn't retaining session variables which that page uses, which makes me concerned that perhaps when that happens Bing isn't able to even crawl the main content..dunno..So, ajax execution seems potentially risky for normal crawling in this case. I would like to simply have my program skip the ajax execution for Google and Bing by recognizing them in the useragent and using an If robot == Y skip ajax approach. I assume I could put the ajax program in the robots.txt file but that wouldn't keep Bing from executing it (and having that exit problem mentioned above). It would be simpler to just have them skip the ajax execution altogether. Is that ok or is there a chance the search engines will penalize my site if they find out (somehow) that I have different logic for them than for the actual users? In the past this surely was not a concern but I understand that Google is increasingly trying to become like a browser so may increasingly have a problem with this approach. Thoughts?
Intermediate & Advanced SEO | | friendoffood0 -
Yoast Seo Plugin
When I view html code of our website, I see this from yoast plugin this. I guess there is really something wrong, especially the page 2? Why so many meta? When ask the support team of the plugin, the developer said me that it is caused by the theme. <html xmlns="<a class="attribute-value">http://www.w3.org/1999/xhtml</a>" lang="<a class="attribute-value">en-US</a>"><head><meta http-equiv="<a class="attribute-value">Content-Type</a>" content="<a class="attribute-value">text/html; charset=UTF-8</a>" /><meta name="<a class="attribute-value">google-site-verification</a>" content="<a class="attribute-value">hRZ9ZRlCURkbiJA5Ewf6VJlSfGZipdXnumAKlHcrHaQ</a>" /><title>Villas Diani | Kenya Luxury Beach Holidaystitle><link rel="<a class="attribute-value">stylesheet</a>" href="[http://villasdiani.com/wp-content/themes/decorum/style.css](view-source:http://villasdiani.com/wp-content/themes/decorum/style.css)" type="<a class="attribute-value">text/css</a>" media="<a class="attribute-value">screen</a>" /><link rel="<a class="attribute-value">alternate</a>" type="<a class="attribute-value">application/rss+xml</a>" title="<a class="attribute-value">RSS Feed</a>" href="[http://villasdiani.com/feed/](view-source:http://villasdiani.com/feed/)" /><link rel="<a class="attribute-value">pingback</a>" href="[http://villasdiani.com/xmlrpc.php](view-source:http://villasdiani.com/xmlrpc.php)" /><meta name="<a class="attribute-value">description</a>" content="<a class="attribute-value">Indian Ocean Villas in Kenya, Diani Beach Resort. Find Diani beach Accommodation and Information for Luxury Beach Holidays in Kenya</a>"/><link rel="<a class="attribute-value">canonical</a>" href="[http://villasdiani.com/](view-source:http://villasdiani.com/)" /><link rel="<a class="attribute-value">next</a>" href="[http://villasdiani.com/page/2/](view-source:http://villasdiani.com/page/2/)" /><link rel="<a class="attribute-value">author</a>" href="[https://plus.google.com/u/0/108558298587711226912/posts](view-source:https://plus.google.com/u/0/108558298587711226912/posts)"/><link rel="<a class="attribute-value">publisher</a>" href="[https://plus.google.com/u/0/108558298587711226912/posts](view-source:https://plus.google.com/u/0/108558298587711226912/posts)"/><meta property="<a class="attribute-value">og:locale</a>" content="<a class="attribute-value">en_US</a>"/><meta property="<a class="attribute-value">og:type</a>" content="<a class="attribute-value">website</a>"/><meta property="<a class="attribute-value">og:title</a>" content="<a class="attribute-value">Villas Diani | Kenya Luxury Beach Holidays</a>"/><meta property="<a class="attribute-value">og:description</a>" content="<a class="attribute-value">Kenya Diani Beach Villas, Luxury Villa Rentals</a>"/><meta property="<a class="attribute-value">og:url</a>" content="<a class="attribute-value">http://villasdiani.com/</a>"/><meta property="<a class="attribute-value">og:site_name</a>" content="<a class="attribute-value">Villas Diani | Kenya Luxury Beach Holidays</a>"/><meta property="<a class="attribute-value">article:publisher</a>" content="<a class="attribute-value">https://www.facebook.com/VillasDianiBeach</a>"/><meta property="<a class="attribute-value">og:image</a>" content="<a class="attribute-value">http://villasdiani.com/wp-content/uploads/2012/08/alfajiri-cliff-villa-diani-kenya.jpg</a>"/>
Intermediate & Advanced SEO | | Rebeca10 -
How come I get different rankings on same word in local search results of Google?
Dear fellow Mozzer's, for one of my clients I get different local results in Google. My client is a real-estate broker and when I search on "real-estate agent" + the city name we are on top. So whoohoo you would say BUT when Firefox has the exact city name determined as the location I am in and I only use "real-estate agent" I get also the local results but we are listed as number 8?? Hope anyone can give me insights as I have no idea what's causing this. Thanks in advance for your help!
Intermediate & Advanced SEO | | newtraffic0 -
Seo Hosting
Can anyone suggest me some seo hosting providers?But in better price like hostgator?
Intermediate & Advanced SEO | | nyanainc0 -
SEO for Global Navigations
I did my first SEO audit from the book SEO Secrets by Danny Dover on my new website at http://melo4.melotec.com:4010/ In the book he says to disable Javascript and see if the global navigation still works. So when I did that the dropdown menus in my navigation don't show. I'm assuming this is a problem but when I check the cache text only version of the site, the dropdowns are in the text only version. Are their any experienced SEO's out their who can weigh in on this issue? Should I have my developer redo the navigation without any javascript? Thanks, Shawn
Intermediate & Advanced SEO | | Romancing0