
The days that IE was number one browser has gone and new players appears. Websites are not Microsoft FrontPage babies that works properly only in IE. The effort that a web designer have to make to create a well done website that follows the web standards but at the same time works on multiple browsers have increase.
I have read a lot of articles about the importance of validating the HTML and CSS code of your site and found that it is not so “important”. I don’t say that you don’t need to do it, but sometimes it’s difficult to apply the web standards to your website. The most important thing is to make your site to work on multiple browsers: Firefox and IE (at least on version 6 and 7). If you archive this it will be ok for your visitors.
But if we analyze in more depth the importance of validating your site you will have the following benefits:
Your site will be working on multiple browsers (not absolute). I found that making your site behave normally in IE you will need a little more effort. Sometimes you need to write a different CSS for it and include it in the following tags:Internet Explorer browser display forms, text fields, buttons and some form elements a little different than Firefox. Especially you will discover the IE always put a padding to your form for no reason. To fix this you will have to write the following CSS code:
form{
margin:0px;
}
Also, if you apply border styles to your button or text field you will have to play with their height because IE displays them different than Firefox.
text-align: center; (there are more options: right, absolute…)
Be more professional. If you learn to write clean and validated code then you will increase your web design abilities, save a lot of time and effort from try to validated your site, use useless code will be a history and generally you will be more proud about your work.
Some useful links
HTML ValidatorCSS Validator
I make a search to see which of the most popular site are HTML validated (XHTML 1.0 strict) and found the following results (Top 10 sites from Alexa.com):
- Yahoo.com HTML: Failed CSS: Pass
- Google.com HTML: Failed CSS: Failed
- Youtube.com HTML: Failed CSS: Failed
- Live.com HTML: Failed CSS: Failed
- MSN.com HTML: Pass CSS: Pass
- MySpace.com HTML: Failed CSS: Failed
- Facebook.com HTML: Failed CSS: Failed
- Hi5.com HTML: Failed CSS: Failed
- Wikipedia.org HTML: Failed CSS: Pass
- Orkut.com HTML: Failed CSS: Failed
It is up to you to decide what is the best.

0 comments:
Post a Comment