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.
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).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With