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
-
Few question about SEO
HI guys, I have few questions and I always find good answer here. I tried many SEO companies some very expensive and well known some with medium prices and some from India. I’m not an SEO expert but I always get the same things from SEO companies. They're saying you have to stay with us for few months before you’ll see any results. I completely understand however I don’t see the result on the end.1. What exactly Do I need SEO company for, after I do on page optimisation if they don’t work on proper backlinks. Just letting you know I’m getting content from other people.2. Is there something else which is really important after your page is optimised than backlinks? Or we should fully focus on get backlinks from customers, guest post, sharing on social media etc. to increase our DA and PA?3. Any advice about some individual or company who is good in backlink services?
Intermediate & Advanced SEO | | Lukas-ST
Thank youLukasThanks a lot.Lukas0 -
Homepage not ranking for main keyword, all other pages ranking slightly for their own keyword phrases.
Dear Mozzers, We have an ecommerce website (www.pashmina-boutique.com), we want to rank the homepage for the keyword "pashmina". Problem is, we are nowhere to be found, not even in the top 100 search results of Google. It is indexed, we have no crawl errors, except that we had some problems with our hosting (503's), the crawler of Google bumped in a few of those. And we are fixing it. Our other pages, e.g. (http://www.pashmina-boutique.com/15-white-pashminas) ranks for "white pashminas" 24th and "white cashmere pashminas" 23rd. We have done no linkbuilding, in Majestic, you can check that. We have been offline for a long time (over 6 months) and about 3 weeks ago, we did a redesign (SEO). We relaunched, everything is looking fine except the homepage isn't ranking for the main keyword. Could you guys check it out? Is it over-optimization? It can't be Penguin, Panda would be a surprise too. Or do we still have to wait for the monthly Panda data-refresh? We are currently busy with this issue, once this is solved - that the homepage is ranking - we will start linkbuilding. Mr.1000
Intermediate & Advanced SEO | | Mr.10000 -
How Google organic search results differ in Local Searches?
We all know Google displays nearby results by locating our ip address. My question is how does these results differ? For eg 1. If someone from Newyork search for "chinese Restaurant in Newyork" 2. Someone from California search for "chinese Restaurant in Newyork" 3. Someone from California changes his location to Newyork and search for "chinese Restaurant in Newyork" What are the factors the Google SERP looks into to display the result in local terms?
Intermediate & Advanced SEO | | rajeevEDU0 -
Search Refinement URLs
My site is using search refinement and I am concerned about the URL adding additional characters when it's refined. My current URL is: http://www.autopartscheaper.com/Air-Conditioning-Heater-Parts-s/10280.htm and when someone chooses their specific year, make, and model then it changes to: http://www.autopartscheaper.com/Air-Conditioning-Heater-Parts-s/10280.htm?searching=Y&Cat=10280&RefineBy_7371=7708. Will this negatively affect SEO for this URL? Will the URL be counted twice? Any help would be great!
Intermediate & Advanced SEO | | BrandLabs0 -
Mission Possible? You have 3 hours to do Local SEO. Which top 5 sites do you go Social Bookmark, Local Search Engine Submit and Directory List.
Mission Possible? Here is a test. Suppose you had 3 hours (okay 7) to go and submit links, etc, on Social Bookmarking, Local Search Engines and Directories, which top 5 or more of each would you do? (Assuming your on-page is already sweetened). I just got 2 more clients and I need to get started on a few things for each. Thankful for all your advice.............
Intermediate & Advanced SEO | | greenhornet770 -
How to create SEO budget?
If I see the site which has 8,000 links from unique domains (RDD in Market Samurai). How much could it cost to build such amount of links? How long does it take? What SEO budget will be based on these data?
Intermediate & Advanced SEO | | rboychuk0 -
Seo Hosting
Can anyone suggest me some seo hosting providers?But in better price like hostgator?
Intermediate & Advanced SEO | | nyanainc0 -
How to increase rankings?
I know to increase rankings involves link building, but what kind of link building is worth it and what type is not? At the moment most of my link building effort is focused on guest blogging, which has worked well for me, I have seen some good movement on a range of keywords using this tactic but I cant help but think I could get a lot more movement in the serp's if I mixed it up a little. A few other link building techniques I know of are below, but I don't really use them, so my question is what ones should I be using combined with my guest blogging to give my rankings that little extra help. 1. Directory Submissions 2. Article Submissions 3. Press Release Distribution 4. Forum Signatures 5. Blog Comments 6. Social bookmarking 7. Social Sites (Squidoo, Weebly, Wordpress, blogger) If I have missed something please let me know. Cheers
Intermediate & Advanced SEO | | activitysuper0