tags:

views:

52

answers:

2

Why should I use a "Strict" doctype vs "Transitional"? It seems like "Strict" is like it says, more strict. I seem to have a hard time getting things to work (css) properly vs using transitional.

+2  A: 

Here's a good article: http://24ways.org/2005/transitional-vs-strict-markup

Maletor
That is a great article - thanks for bringing it to my attention.
Ken Ray
+4  A: 

Transitional is, essentially, "Strict + things that should almost never be used".

So use Strict until you find yourself needing something that Transitional adds, and then think very hard about if you really need to use that element or attribute.

There should be no differences in the ways that browsers treat CSS when you switch between those Doctypes, unless you use the short form of the HTML 4.01 Transitional Doctype (i.e. without the URI) or are using HTML 4.0 (don't, it has no benefits over 4.01 at all).

David Dorward