Grow your CSS skills. Land your dream job.

Validation (again)

  • # October 30, 2010 at 8:22 am

    The topic of validation always feels beat to death to me. But I recently had someone email:

    I took a CSS class recently and the teacher stressed the importance of the error free validation. One of the things i have noticed tho, is that most websites (incl. big names) don’t validate correctly. Is there a benefit to it?

    And I kind of liked my own short response:

    If your page looks fine in all browsers but doesn’t validate, meh, who cares. If you validate and the errors are little simple mistakes you can fix, sure, do it. If your page looks broken, validation is one of the best ways to start looking for problems.

    # October 30, 2010 at 9:33 am

    I’d further it just slightly and state that you should strive to produce valid code. If you know something is not valid but can legitimize its use – then move on worry free.

    # November 2, 2010 at 2:53 pm

    @chriscoyier
    well i see many times people complaining about IE not working on things. and most of times it works on compability view of IE. and thing with is making it with standard based coding. i.e if you have doctype included of xhmtl transitional then validate your document against that doctype if it passes validation test then chances are it will work on most browser’s. css problems are there but few basic problems can be solved like unncessery spacing between elements.

    so my two cent is to use standard, as browsers are going to be strict and in future there may be time that if you don’t have validated code then your site may break. right now most browsers fixes the error’s automatically.

    and also if you are thinking about future smart phones or hand held screen’s then it is almost must to validate your code. because they have small footprint’s and they will be very strict against any type of errors. your page may stop after error’s.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".