Why you should be using XHTML Strict
Written June 5, 2009. 11 comments.
The truth be told, there’s no good reason to be using the Transitional doc type in modern web design. At least IMHO. XHTML Strict as the name suggests is a more disciplined flavour of HTML, but it has the added advantage of forcing you to separate the presentation from the structure.
This is partly because a lot of the valid attributes in Transitional that some designers use for presentation are actually invalid in Strict, such as align, background, border, height and width (except on images) and many more. With these attributes being illegal you are only left with one option for presentation: CSS. That’s a good thing.
Web browsers are rather forgiving with Transitional (or HTML Lazy as I sometimes call it), but it’s only intended to be used for when you have older legacy code that can’t make the jump to Strict, and I think this is the reason why a lot of designers still prefer Transitional.
As someone who once upon a time did everything Transitional, I will agree that making the transition (wrong choice of words?) to XHTML Strict was painful at first. But if you’re doing everything semantically and checking that your work validates to W3C, you will start to see a big improvement in the way you construct your code. Because the first task should be to implement the site’s purpose, and worry about how it’s presented later.
At the end of the day, if your goal is to deliver the most web standards compliant web site possible (and why shouldn’t it be?), XHTML Strict is the way to go.
Start of page
I love this design and noticed you’re not supporting ie6. Is this because you went strict and it was too hard to support?
The important thing that it’s separating the content from the structure.
I have to keep checking the validator though but there are less and less errors every time. I might end up being pretty good at this sort of thing one day.