Which Doctype is for me?
June 25th, 2008
This is yet another thing that has been bothering me for quite some time now, that I just haven’t had the will power to address it. Well, I think it has pushed me over the edge. Why are people using Transitional DOCTYPES for new projects?
Stop and think about the title for a minute, would you please!
T-R-A-N-S-I-T-I-O-N-A-L It does not say “use this DOCTYPE if you are lazy“. No. This clearly states that it should be used for, wait for it, transitioning from legacy content that probably did not have a DOCTYPE to begin with, and now does to help give some order to the confusion. They are also there to say “hey, we have some presentational elements mixed within the markup”.
Taken from w3.org
This is the HTML 4.01 Transitional DTD, which includes
presentation attributes and elements that W3C expects to phase out
as support for style sheets matures. Authors should use the Strict
DTD when possible, but may use the Transitional DTD when support
for presentation attribute and elements is required.
When is this required you may ask? As stated above, when you are dealing with legacy content that is out of your control for the most part, as far as formatting goes. This definition clearly tells you out right to use a Strict DOCTYPE when at all possible. Still not convinced?
(more…)
- Posted at 9:49 am in web design |
17 Comments »




