Is XHTML 1.0 Transitional the most common doctype that you find yourself using? Do you ever use XHTML 1.0 Strict?
The only reason to use a transitional DTD is that you're using deprecated (obsolete) elements and attributes. The strict DTD is the one to use unless you have compelling reason to have deprecated elements or attributes. cheers, gary
I use XHTML 1.0 Strict all the time. But I like things strict. Plus, I figure it'll make my pages look more consistent throughout browsers (Looking at you IE )
Hi Gary, thanks il choose Strict then as i want to avoid using deprecated anything. Thanks lifesgood, worth trying to get everything as good as possible. Thanks for your input DinamoXP.
It won't look any diffferent using that and might even be worse since you won't serve it as XHTML, especially in IE which can't understand XHTML at all.
Most people think that just because they add the xhtml doctype to the page that the browser will interpret the markup as xhtml and that is not true. Browsers look at the mime type sent by the server. XHTML requires the mime type of 'application/xhtml+xml' but 99.9% of everyone sends their pages as 'text/html'. Therefore, browsers look at your xhtml as html with errors in it caused by xhtml syntax, commonly called "tag soup". That's why using xhtml does not make any sense for most people and any advantages anyone claims is nonsense.
Thanks very much for explaining drhowarddrfine, i didn't realise that. Added text: Im going to have to read about that to understand it further but thanks for mentioning this.