[QUOTE]
Why, on Earth, are you using XHTML Doctype and syntax? Are you to use XML files on it? I doubt. You should use common HTML strict DTD and syntax.
Rather than hijack the thread the above was posted in to another poster, I thought it best to put this question in a thread of its own.
I have always been of the opinion that to a large extent it does not matter what DOCTYPE you use as long as you are consistent throughout a website and that the web pages pass the w3c validator for the chosen Doctype.
[B]For a few years now I have been coding in XHTML with a Strict DTD.
My typical web page header is:
[CODE]
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN”
“[URL]http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd[/URL]”>
<html xmlns=”[URL]http://www.w3.org/1999/xhtml[/URL]”>
<head>
<meta http-equiv=”Content-Type” content=”text/html;charset=utf-8″ />
I am happy to use this on commercial websites I build and I ensure all my web pages pass the w3c validator before passing the website to the client. (but I don’t spend time validating any web pages I post in forums like these as long as the functionality is correct)
I’m not looking for arguments or trying to tell others what Doctype they must use.
But I am curious as to why a few in these forums are so strongly opposed to XHTML.
Any thoughts or comments?
Maybe delete this thread if you think it could start a fight[/QUOTE]
[B]But I don't see any downside to using XHTML.[/B]
Now I'm not saying everyone must or should use XHTML. I still believe it's a matter of personal choice and what you are used to to some extent.[/QUOTE]
A general principle of the efficiency (not only in programming) says :"use the proper tool to achieve the proper result".
[/quote]
I agree in general, but I don't see how XHTML is not a proper tool for building web pages.
So imo, selecting a doctype is a personal choice.[/QUOTE]
One error with xhtml, easily made with user input, produces the "screen of death "
html documents are smaller[/QUOTE]
.. by using application/xml+xhtml I can ensure that I notice when my mark up breaks[/QUOTE]
[code=html]<!doctype html>[/code]
Hmm. HTML5 is still in draft - so I am not using it yet. I also wonder how IE6 (still used by some of corporate sites for application legacy reasons) would handle it. Must admit that I hadn't noticed Google was using HTML5, though. That said, its page layouts are scarcely complex. I assume Steve Jobs has an issue with Adobe when he fails to support Flash with iPodTouch, iPhone and iPad - but we are drifting OT, here.[/QUOTE]
but we are drifting OT, here[/QUOTE]
[B][COLOR=blue]Why is it allowed to send XHTML 1.0 documents as text/html?[/COLOR] [/B]
[SIZE=2]XHTML is an XML format; this means that strictly speaking it should be sent with an XML-related media type ( [SIZE=3] ). However XHTML 1.0 was carefully designed so that with care it would also work on legacy HTML user agents as well. If you follow some simple guidelines, you can get many XHTML 1.0 documents to work in legacy browsers. However, legacy browsers only understand the media type text/html, so you have to use that media type if you send XHTML 1.0 documents to them. But be well aware, sending XHTML documents to browsers as[COLOR=#008000]application/xhtml+xml[/COLOR] ,[COLOR=#008000]application/xml[/COLOR] , or[COLOR=#008000]text/xml[/COLOR] [/SIZE][COLOR=#008000]text/html[/COLOR] means that those browsers see the documents as HTML documents, not XHTML documents[/SIZE]
[SIZE=2][/SIZE] [/QUOTE]
Does it matter whether it's still in draft?[/quote]
More liable to significant change than an approved version.[/QUOTE]
html documents are smaller[/quote]
To be honest, I can't remember which site I pickled the data from.[url=http://techcrunch.com/2010/02/02/internet-explorer-browser-share/]TechCrunch[/url] shows IE6 share as 20% in January 2010. On my main company site, IE6 had 16.2% of hits that month. In any case, even 8% would be more than enough to make sure my sites were IE6 compatible. Business is business.[/QUOTE]
For what it's worth, I use the w3schools published figures as a ball-park guide only.
The figures in the link below, show that in April 2010, only 7.9% of users still used IE6
[URL]http://www.w3schools.com/browsers/browsers_stats.asp[/URL]
[/QUOTE]
Something like 17% of browsers are still IE6. That matters to me because I design sites intended for business customers, and many of those are stuck on IE6. It's a pain. I avoid png, and have to have style sheets introduced by conditional statements, and Flash needs special handling - but by and large, sites designed in HTML 4.01 or XHTML 1.0 work fine. HTML5 would be pushing it, though. I hope it doesn't become accepted for a while until the stone-age browsers have finally gone.[/QUOTE]
and Flash needs special handling[/QUOTE]
.....The only stats that matter are [B]your[/B] user's stats......[/quote]
I didn't think I took your statement out of context unless I misinterpreted what you were saying overall.
If I did misinterpret, can you please clarify what you were trying to say.[/QUOTE]
XHTML2 left to die:
http://www.w3.org/News/2009#entry-6601
http://www.zeldman.com/2009/07/02/xhtml-wtf/ [/QUOTE]
Let's make a petition: "Don't let XHTML die, pleeeease!" [/QUOTE]It won't die completely as html5 will support it, but will require being sent by the server with the correct content-type, i.e. not html/text.
It won't die completely as html5 will support it, but will require being sent by the server with the correct content-type, i.e. not html/text.[/QUOTE]
...........But [B]tirna[/B] loves XHTML much too much, so that he won't let it die so easy, will you, [B]tirna[/B]? [/quote]
In my original post I said I was curious as to why[COLOR="Red"]some in here are so strongly opposed to it[/COLOR] and trying to find out is my intention for starting this thread.[/QUOTE]
sorry, my mistake ?
"strongly opposed to it" should have been "strongly opposed to its usage".
Whether it is correct or not to use XHTML is a matter of opinion imo ?
[COLOR="Red"]I'm not convinced it is incorrect to use XHTML.[/COLOR] [/QUOTE]
1. For the one who needs to handle languages, codes and files from the XML family in his web project, XHTML is indispensable. Otherwise, HTML 4.01 strict [I]is more than enough[/I]. [COLOR=red]But who wants to use XHTML even for that, is free to do it, if he knows it very well.[/COLOR]
[/quote]
I'm glad we finally agree on something ?
As I said in an earlier post, choosing to code in XHTML[COLOR="Red"]is my personal choice[/COLOR] to do so and I am not trying to convince anyone to switch from whatever doctype they normally use.[/QUOTE]
Why, on Earth, are you using XHTML Doctype and syntax? Are you to use XML files on it? I doubt. You should use common HTML strict DTD and syntax.
[/quote]
Rather than hijack the thread the above was posted in to another poster, I thought it best to put this question in a thread of its own.
[/quote]
it gets to the stage where I need to do something on a web page that can't be done in XHTML
[/quote]
After being a silent observer for a while now i think i can properly summarize what each of your points are:
Tirna - If the xhtml doctype is being used and is being served as text/html mime type, then it will be processed as html. While i am not using it for its xml properties it is still working properly for html output.
Everyone else - If you're not using any of xhtml's xml properties and are only serving it as html then why not use one of the more proper choices that may suite your needs better, aka html 4/5 doctypes.
[/quote]
EDIT (removed)
Interesting comic:
[URL]http://www.smashingmagazine.com/2009/07/29/misunderstanding-markup-xhtml-2-comic-strip/[/URL] [/quote]
EDIT (removed)
Interesting comic:
http://www.smashingmagazine.com/2009/07/29/misunderstanding-markup-xhtml-2-comic-strip/ [/QUOTE]
After being a silent observer for a while now i think i can properly summarize what each of your points are:
Tirna - If the xhtml doctype is being used and is being served as text/html mime type, then it will be processed as html. While i am not using it for its xml properties it is still working properly for html output.
Everyone else - If you're not using any of xhtml's xml properties and are only serving it as html then why not use one of the more proper choices that may suite your needs better, aka html 4/5 doctypes.
Forgive me if i got something wrong above, i am not trying to put words in peoples mouths. I see each sides point. No one here is against xhtml but they're against using it when it is not needed. However, at the same time i can see how someone wouldn't care since xhtml served as html works perfectly fine. My advice would be, if you have an existing project that uses xhtml and serves it as html then go ahead and keep using it as it is perfectly fine. However if you're starting a project and you know you'll never need any of xhtml's xml properties, then you might as well choose a more fitting doctype. The more fitting doctype will work just as well and will allow for smaller code due to other doctypes being less strict in terms of markup.
The gist of it is, choose the doctype out of logical reasoning and for appropriate reasons, not because you don't know any better.[/QUOTE]
........I'm curious as to why the OP continues to moan about his/her choice of doctype.
Honestly, if you're not trying to convince someone, why do you keep posting? (that's not rhetorical)[/quote]
I post because like everyone else, I have a right to reply and/or to make comments where I feel I can help.[/QUOTE]
.....So, you have failed to show us why it comes down solely to a matter of opinion. The counter-argument is that the decision is not solely a matter of opinion and can be made logically:..........
[/quote]
but[COLOR="Red"]no-one has given me a reason[/COLOR] that would make it worth my while to switch from coding in XTML thus far.[/QUOTE]
You are funny ? Really. But [I]no one wants to give you a reason[/I] to switch from coding in XHTML. [/quote]
[/COLOR] I was merely making an observation after reading through the comments from various posters in this thread and not asking for a reason[COLOR=black].........but no-one has given me a reason that would make it worth my while to switch from coding in XTML thus far.....[/COLOR] [/QUOTE]
The purpose for me starting this thread was to get feed back on why some are strongly opposed to what they perceive as an incorrect usage of XHTML. I appreciate the views of others, but no-one has given me a reason that would make it worth my while to switch from coding in XTML thus far.[/QUOTE]
So, you started this thread to get some feedback regarding your perception that others are hostile over your choice of doctype.
[COLOR=red]This is simply not true. If you look back at my original post you will see that I used an anonymous quote (which Kor later owned up to being the author) [B]that was not aimed at me at all[/B]. [U]I don't feel a sense of hostility towards me personally at all over my coding in XHTML[/U] (maybe I've just built up a thicker skin over the years ? ), but it's obvious some are opposed to the general inappropriate use, as they perceive it, of XHTML in general.[/COLOR]
We're (some of us) trying to give you an answer. However, rather than taking a moment to comprehend the explanation, you're getting defensive and assuming that we're trying to get you to switch doctype.
[COLOR=red]Not true - I appreciate the comments made in this thread and some of the info in the links others have posted have provided food for thought for the future[/COLOR]
Sure. There may be some interleaved suggestions here (like "use html5"), but the main point is that there are good reasons to pick a doctype. You're not required to have chosen a doctype for one of those reasons. But, you should expect some hostility if you make a [perceived] doctype recommendation without a justification--preferably a good one.
[COLOR=red]I haven't made any recommendations on which doctype to use. I have consitently posted in this thread saying that I am happy to continue coding in XHTML and that I am not trying to get anyone to change the doctype they are comfortable using.[/COLOR]
Because the differences in doctype are not always trivial.[/quote]
I stated my reasons for continuing to code in XHTML
[/quote]
and haven't tried to change others' choice of doctype.
[/quote]
Nobody is against it.
[/quote]
what's your logic for using XHTML in your sites?[/QUOTE]
I
Bon. So, as we all said almost everything which was to be said about the matter, I suggest you all to close and end the game here, and let the Posterity to judge us all. ?[/quote]
0.1.9 — BETA 5.17