Do Search Engines Care About Valid HTML?

Do Search Engines Care About Valid HTML?

HTML

Valid HTML

Like most web developers I’ve heard a lot about the importance of valid HTML recently. I’ve read about how it makes it easier for people with disabilities to access your site, how it’s more stable for browsers, and how it will make your site easier to be indexed by the search engines.

So when I set out to design my most recent site, I made sure that I validated each and every page of the site. But then I got to thinking while it may make my site easier to index, does that mean that it will improve my search engine rankings? How many of the top sites have valid HTML?

HTML Validator

To get a feel for how much value the search engines place on being HTML validated, I decided to do a little experiment. I started by downloading the handy Firefox HTML Validator Extension (https://addons.mozilla.org/en-US/firefox/addon/html-5-validator/) that shows in the corner of the browser whether or not the current page you are on is valid HTML. It shows a green check when the page is valid, an exclamation point when there are warnings, and a red x when there are serious errors.

I decided to use Google trends to determine the top 5 most searched terms for the day. I then searched each term in the big three search engines (Google, Bing, and Yahoo) and checked the top 10 results for each with the validator. That gave me 150 of the most important data points on the web for that day.

HTML results

The results were particularly shocking to me only 7 of the 150 resulting pages had valid HTML (4.7%). 97 of the 150 had warnings (64.7%) while 46 of the 150 received the red x (30.7%). The results were pretty much independent of the search engine or term. Google had only 4 out of 50 results validate (8%), Bing had 3 of 50 (6%), and Yahoo! had none. Now I realize that this isn’t a completely exhaustive study, but it at least shows that valid HTML doesn’t seem to be much of a factor for the top searches on the top search engines.

Even more surprising was that none of the three search engines home pages validated! How important is valid HTML if Google, Yahoo!, and Bidon’tont even practice it themselves? It should be noted, however, that MSNs results page was valid HTML. Yahoos homepage had 154 warnings, MSNs had 65, and Googles had 22. Googles search results page not only didnt validate, it had 6 errors!

In perusing the web I also noticed that immensely popular sites like ESPN.com, IMDB, and Facebook don’t validate. So what is one to conclude from all of this?

It’s reasonable to conclude that at this time valid HTML isn’t going to help you improve your search position. If it has any impact on results, it is minimal compared to other factors. The other reasons to use valid HTML are strong and I would still recommend all developers begin validating their sites; just don’t expect that doing it will catapult you up the search rankings right now.

Do Search Engines Care About Valid HTML?

Learn HTML, Or Use A WYSIWYG Editor

HTML

 

Learn the basics of HTML

When I first started designing web pages back in 1998,  it was necessary for me to learn the HTML markup language. At that particular time, there were somewhat you see is what you get editors, but almost everyone that design web pages used raw HTML and understood how it worked. Now, seven or eight years later, we find that be the market is flooded with editors such as Dreamweaver that allow anybody to design web pages as easily as they can create a Microsoft Word document.

Whenever I take someone under my wing, and start teaching them about Internet marketing, and designing web pages, the first thing that I tell them is that they should learn the basics of HTML. While I recommend that they use Dreamweaver for most of their web page designs, it’s always helpful to be able to go into the code view and understand what they are looking at. It also helps whenever viewing the source code of other people’s web pages, to see how they did one thing or another with their code. This would be nearly impossible if you did not understand at least the basics of HTML.

Clean HTML code

Another benefit of knowing HTML is that you can go in and clean up your code. After you design a page in a program like Dreamweaver. A lot of times, there is weird formatting that goes on behind the scenes in it what you see is what you get an editor. It makes it difficult, sometimes even for those of us that know HTML to go into the document, and know where we are at inside the code. However, if you understand HTML, it’s easier to go in, make your code neater and more manageable, and then save it in that format so that it’s easier to go in and edit in the code view in the future.

While there’s no doubt that using programs such as Dreamweaver can make beautiful web pages that function fully without even going into messing with the HTML at all, I still think that it’s a good practice to understand the basics of the HTML markup language and to make sure that you use it on a regular basis so that you keep this skill. Not only does it help you when you’re in a code pinch, but he keeps you from being what I like to call a lazy web designer.