Thursday, April 26, 2007

The Importance of valid HTML code!

There are many webmasters out there that overlook a very important aspect of web site promotion; it’s the validity of the HTML code.


What is valid HTML code?


Most of the web pages are written in HTML. As for any other language, HTML has its own grammar, vocabulary and syntax, and ever document written in HTML us supposed to follow these rules. HTML is always constantly changing. As it has become a rather complex language, it’s easy to make a mistake. HTML code that does not follow the official rules is called invalid HTML code.


Why is valid HTML code important?



Search engines have to parse the HTML code of your website to find the relevant content. If you have errors in your HTML code, then search engines might not be able to find everything on the page. Search engine crawler programs obey the HTML standard. They will only be able to index your website if it complies correctly with the HTML standard. If there is a mistake in your web page code, then they might stop crawling your website, and they can also lose what they have collected already because of their encounter with this error. Even though most major search engines can deal with minor errors in the HTML code, a single bracket in your code can be the reason why you cannot find your website in the search engine. If you do not close some of your tags properly, of if there are some important tags missing, search engines might ignore the complete content of that page.


How can you check the validity of your HTML code?

Validator.w3 is a great website where you can verify if your HTML has any errors.

1 comment:

Anonymous said...

Good post.