Forum Moderators: open
just stumbled across the post - dated around mid 2006,( [webmasterworld.com...] also here: [w3.org...] ) about the choice of media types to use with specific doctypes
i have been using xhtml strict with text/html for some time now, have suddenly got the 'willies' about continuing to use this setup. i was under the impression that by using xhtml that i would gain more hreliable rendering across browsers, better structure, easier to check - with validators etc - all good i thought.. but having read through, or at least tried to, im not so sure.
IE6 seems to be the culprit again as per usual.
i was wondering if someone could advise as to which doctype/media type i should be using for the greatest amount of
1. reliability cross broswer
2. continued support
3. general lack of pain in the bum
many thanks
nat
And if you're going to be serving text/html, then your document should probably be (big surprise) HTML! If you're serving XHTML 1.0 as text/html, then you're not getting the real benefits of XHTML. That is, the browser is still treating your document as tag soup (vs. utilizing xml tools to view your document).
I think it's a great exercise for developers to learn and use XHTML. You will learn some very helpful development practices in doing so. But my recommendation is to switch back to HTML 4.01 (but continue to create well formed documents). A lot of people thought XHTML was going to be the next version of HTML, but that simply isn't the case.
i was wondering if someone could advise as to which doctype/media type i should be using for the greatest amount of
1. reliability cross broswer
2. continued support
3. general lack of pain in the bum