|
|
|
#7 | |
|
Just because I don't care doesn't mean I don't understand!
|
Quote:
XHTML was intended as a format which could combine both HTML and XML, but for that to happen, documents would need to be served up as application types, not as text. Explorer, which still has a very firm grip on the browser market, chokes if you do that. As a result, XML usage is confined to a few specialist niches and XHTML documents are almost always consigned to being treated exactly as if they had been coded in plain old HTML. If it is of no benefit now, does XHTML have any value as future-proofing? The opposite seems likely, since the rumor-mill says that XHTML2 will not be backwards compatible while HTML5 will be. Nor, since Mr Gates has only just delivered IE7 does there seem much chance that the dynamic potential of X(HT)ML is going to be unleashed on the world any time soon. There is no particular reason not to declare an XHTML doctype and in any case, it only takes a few seconds to switch back and forth. There just isn't - currently - any very good reason to do so. Writing valid code, with structure separate from style is something we should do, because it makes our sites leaner and faster, friendlier towards more visitors and to the search engines. Easier to manage and troubleshoot too. But a "strict" declaration (in particular) enforces well-formed code far more than the choice between HTML and XHTML. Last edited by jayeff; 2006-11-16 at 02:59 PM.. |
|
|
|
|
|
|