Sunday, June 8, 2008

Is there a perfect HTML? Definitely not on Google!

I have been reading about SEO and how some search engines need your website to have the correct HTML to get better ranking in their search results. We are very conscious about our position in the search pages especially when a position on a search page would translate into a huge difference in traffic and also revenue.
A lot of people are also trying actively to unseat you from the top position and gain the prized position. So you need to actively monitor the changes that they make to the search algorithms and watch for changes to ensure that you don’t lose your spot on the search results.
So we have been reading that some search engines have change their algorithm and will give a preferred ranking to pages that have correct HTML pages. I was tasked with review of our site to see if our pages have valid HTML pages and make corrections if necessary.
Our company standard for web development is to test out the pages using the most popular browsers and ensuring that they look as they should in each of the common browsers. So our standard is to test out the websites using IE, Firefox and Opera. We also test our websites using different versions: we had different machines that we didn’t upgrade the browsers so that we could test our websites using the older versions of the browsers.
Since we ensure that our websites look as they should in different browsers we have had to write a very tidy and correct HTML for our pages. So it was a surprise when I used the W3.org’s validator and saw that we had over 100 errors in our website. You can access the validator by going to http://validator.w3.org/ and simply typing your public web address. We are using the transitional document type and have stayed away from the strict dtd as we like to retain the freedom of how we create our websites.
But soon I started asking questions about how the rest of the websites are doing. So I started typing some of the popular sites on the Internet to see how they rank and was really startled to see the results.
Here are some of the results that I saw:
http://www.google.com 62 Errors
http://www.google.ca 59 Errors
http://www.yahoo.com 34 Errors
http://www.yahoo.ca 1 Error
http://www.microsoft.com 183 Errors
http://www.microsoft.ca 194 Errors
http://www.mozilla.org/ 1 Warning
http://www.mozilla.com Passed!

Please note that I got the above results at the time of writing this blog and some of these sites make hourly changes, so you might get a different result if you try it.
It was interesting that number of multi-national companies have different teams that work on their different versions of website that is targeted at different countries. That is why I was surprised to see the difference between the different teams in the same companies and how disjointed they work. How hard is it to create company policy for web development? We are a small company and we are looking at changing our policy to include W3 validation.
In the above research I simply tried the .com and the .ca (Canadian counterpart). You will notice that the Canadian team managing the Yahoo Canada website have obviously managed and validated their HTML much more closely than the Yahoo’s main website. Kudos to them!
For the amount of money that Google makes and also the simplicity of their main page, I can’t believe that they managed to squeeze in 62 errors into that page. How hard do you have to work to get an image of Google’s logo, an input box with bunch of hyperlinks to generate 62 errors.

Currently I am making my way through the 100 errors on our page and trying to correct all of them, but remain assured that I will not be looking for anyone from Google to provide any help!

No comments: