Forum Moderators: open

Message Too Old, No Replies

doctype and media types

now im really confused

         

natty

11:28 am on Feb 5, 2008 (gmt 0)

10+ Year Member



Hi all,

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

Fotiman

3:32 pm on Feb 5, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



In today's world, you're going to be serving text/html (because IE can't handle application/xhtml+xml). So that answers one of your questions right there.

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

text/html with an HTML 4.01 Strict DOCTYPE.

natty

4:05 pm on Feb 5, 2008 (gmt 0)

10+ Year Member



Hi Fotiman, thanks for the reply

well i guess ill get changing my ways.. (doctype that is)

how did those nasty micro$hafters ever get IE6 out the door?

its clearly pants on a large Y-front type scale.

i cant remember the last time i had a problem (if ever) with any other browser..

ho hum

nat