Website Code Validation & SEO 16 comments
Many of us wonder if there is a connection between SEO and the Valid/Invalid code of a website. We’ve tried some searches on Google to get some conclusive resources but in the most cases we were disappointed of what we had found. So, in this post will try to speak from our experience.
From our point of view, it is very clear that the page code (HTML) has a very high impact on the website’s search engine optimization. The external files like CSS or JavaScript count in a very small percentage in this. From these two simple sentences it’s clearly that the Validation of your page affects your search rankings and not only, in different ways.
However, it’s not so simple as it seems, a Valid HTML code is not necessary to be an optimized code. If you drop some text in a HTML document that will certainly be Valid it doesn't mean that it will improve your SEO performance. We’ll try to make you understand, so let’s choose a text and an image and lets write the HTML for it on 3 different forms:
<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>
<table cellpadding="0" cellspacing="0">
<tr>
<td><img src="images/example.jpg" alt="image description" width="*" height="*" /></td>
<td>
<b>Choose the right code structure</b>
<table cellpadding="0" cellspacing="0">
<tr>
<td colspan="3">This error is often caused by:</td>
</tr>
<tr>
<td>1. you must use the "Frameset";</td>
<td>2. this is usually fixed by using CSS;</td>
<td>3. XHTML attributes must be all lower-case.</td>
</tr>
</td>
</tr>
</table>
</body></html>
<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>
<img src="images/example.jpg" alt="image description" width="*" height="*" />
<b>Choose the right code structure</b><br />
This error is often caused by:<br />
1. you must use the "Frameset" document type to get the frameset element;<br />
2. this is usually fixed by using CSS;<br />
3. XHTML attributes must be all lower-case.
</body></html>
<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>
<img src="images/example.jpg" alt="image description" width="*" height="*" />
<h1>Choose the right code structure</h1>
<p>
<strong>This error is often caused by:</strong>
<ul>
<li>you must use the "Frameset";</li>
<li>this is usually fixed by using CSS;</li>
<li>XHTML attributes must be all lower-case.</li>
</ul>
</p>
</body></html>
|
As you can see, any of the 3 forms are valid, but we think that only one of them should be used from the User/SEO/Speed/Design perspectives. The search engines have strong and complex algorithms that can determine many internal structures of your pages (header | footer | main menu | breadcrumbs …). Also, if you are a webmaster, you may take a look at HTML5 features.
If you get the idea, you may try to validate your pages using some popular web validating systems like W3C. You can also find useful the validating options under the SeoAnalyser.net menu when you analyze a domain.
How to write an optimum Valid HTML/XHTML code
Many of web developers make compromises between Design / SEO / User Experience / Validator when they write the frontend code of a website. But all of this can help from one perspective and harm from another. We think that there is always a middle way, but of course this depends on the developer and designer experience.
So, why should you make a beautiful website menu if it’s not a valid/optimum one? - We don’t know, but maybe just because the page owner wants to. But why don’t we make that menu to be valid and beautiful in the same time? - Sometimes you may just use some advanced XHTML&CSS tricks that can be hard to apply.
|
|
NOTE: Most of the websites are behind free/paid platforms like WordPress, Blogger, Joomla, Oscommerce and many more. We agree that some of them rank good. In the same time, they may loose some performance factors because they emphasize in making the control panel more easy for the users. "Huge websites" have complex techniques behind them. Using some widgets | gadgets | plugins on websites can bring up validity issues.
Conclusion
In our experience, nothing is set in stone, everything is flexible (get a look to flash/flex/ajax websites). Your pages can rank well with invalid HTML code (only if you don’t have critical errors or it’s full of errors), but a valid code certainly is an advantage.
You can share or view other experiences by viewing the comments below.

16 Comment(s)
Hmmm! Interesant! REPLY
Terima kasih atas informasinya....tapi tetap masih belum bisa dari 50%...banyak yang masih problem REPLY
Thanks very much for all REPLY
Thanks for this information.
Very helpful
btw kebanyakan orang indonesia aja disini, REPLY
info yang sangat bagus REPLY
wow... Perlu belajar lagi nih.. REPLY
Pusing mikirin html meta xml parse and code2,mending makan baso bakar pedas sapi tipis dket rumah,wkakaka..;-) REPLY
emang mantap nih,,, REPLY
Mantap...
Buat semua nafsu dan gairah ada di sini.silahkan masuk. REPLY
ikut coba ahh..smoga bisa sukses, REPLY
Perwakilan Anak Jogja juga datang kawan.. REPLY
angkringane ojo lali lho kang :D REPLY