This is a follow up to my blog entry. You can read the logic behind my intentional deviation from some standards in more detail there.
I don't say that I write bogus code with inline css, font tags, deprecated elements and attribute and spread tables all over for pixel perfect positioning.
I just say "Don't let a machine do a man's job".
I mean of course go validate your markup. It is the first step in creating a coherent and accessible web site.
However, don't build a blind faith upon the Validator:
Don't simply validate your
markup to show off the badge of honor(s) at the bottom of your page.
That's simply because, the W3C Validator cannot decide,
it cannot judge between apropriate and inapropriate.
To take it another way; if you know what you are doing and why you are doing so; if you can provide a sound argument to your decision then there is nothing wrong in a markup that is left intentionally invalid.
It's because, in that case, you have a complete control over your code. However you should be really really careful. Because often there exists a point where the control turns into chaos. So when you deviate be aware of the consequences of it.
After this much introduction, here follows the parts of this site that I intentionally left invalid:
Each business decision brings certain amount of risk with it.
And you decide to take that risk or not.
You are most probably working with real people and trying to conceptualize real-life scenarios.
So jump off from your ivory tower:
A SGML parser cannot do business logic decisions
and risk analysis for you. It can only lead you to the
right way. However it is your responsibility to take the risk.
To give an analogy:
Remember that Phantom Menace used his radar (the Validator)
to detect the target (a forward compatible, future-oriented web application).
However he used his feelings and subjective judgement to shoot right at the
heart of the target (Star Wars - Episode I).
So use your feelings and your judgement.
Should you do, you will most probably find the right path.
May the force be with you!