The Importance of Clean Code

Clean code is important when it comes to getting your website indexed on search engines such as Google and Yahoo.
Using a validator such as the W3C validator can check your code for errors. Validating your website helps with optimisation and makes sure there are no errors or unneeded code issues.

There are a number of document types your website can be validated to, the most popular ones to use are XHTML 1.0 Strict and XHTML 1.0 Transitional. You will find that most websites use one of these two document types. It is recommended that your website is validated to strict if possible. As discussed earlier you should also check your website works in a number of different browsers.