How important is valid HTML for search engine rankings?
There’s a lot of discussion in web designer/developer circles about valid HTML and search engine rankings. If your site has valid HTML or XHTML, will it have better search engine rankings than a website with HTML errors and warnings? My answer would be ‘Yes’.
However, I will qualify my positive statement by saying that I don’t know how you could prove this. My ‘Yes’ answer is based on my experience of website redesigns over the last couple of years. In each case, the new website followed better coding standards and an improved search engine position was achieved over several months. However, there are undoubtedly a lot of other factors involved here (including better semantics) and my experience may be just good luck. I’d have to put my answer down to gut feeling rather than scientifically proven.
There’s an interesting article about valid HTML and search engine rankings in a recent Entireweb newsletter. The author searched specific keywords and checked the top ranked websites for valid HTML using this Firefox HTML validator extension. Results showed that most of the websites did not validate. In fact, only 7 of 150 websites validated!
Update: Online version of Entireweb article on valid HTML and SE rankings
The apparent answer here is that valid HTML does not matter two hoots. However, I don’t think you can say that for certain unless you can compare identical websites where the only difference is valid HTML/non-valid HTML. This looks difficult to prove particularly if search engines penalise duplicate content.
Oh well. Back to my gut feeling. I’d still say that valid HTML/XHTML is important.
PS Google says ‘check for correct HTML’ in its webmaster guidelines
· Related » Mike Davidson has investigated how web standards (and other factors) affect Google placement in his Roundabout SEO Test aka the lodefizzle test.
One of Mike’s conclusions is “It’s not clear that validity helps search engine ranking, but it’s definitely true that certain errors in your code can get you completely removed from indexes”.