
Originally Posted by
Mazigh
I was beginning with the xhtml because i thought it is another language than html
Not really. They are more or less the same with a few minor syntactic differences.
in fact it is somehow a newer version of the html.
It is unlikely that a new version of HTML will ever be produced, so yes, XHTML would be the next generation markup language. However, HTML won't be going anywhere for a very long time.
Do you think those quizes [produced by W3Schools] give a good idea agout the basic knowlege of the language tested ?
Not particularly. They present deprecated examples, some of the questions are badly written, and in my opinion, some of the answers are wrong (or at least misleading). For instance, the last question in the XHTML test asks if "all XHTML tags and attributes must be in lower case". The answer they expect is 'True', but that's not strictly the case. As XHTML is an application of XML, element and attribute names are case-sensitive so if they are defined with uppercase letters, then that's what must be used. Elements and attributes in the http://www.w3.org/1999/xhtml namespace are lowercase, but that's not necessarily true of other namespaces.
As far as the xml and sgml i believe i understood it theoritically, but i don't know how they works pratically.
Practically? Care to provide any specific questions you have?
So, i will skin those sgml and xml, because i will begin with the javascript, it seems to be more interesting than the markup languages
Be very careful when reading about client-side scripting. There is an enormous amount of junk on the Web that's better as examples of how to not do things. For instance, W3School's 'Introduction to JavaScript' contains the following bullet point near the end:
JavaScript can be used to detect the visitor's browser - A JavaScript can be used to detect the visitor's browser, and - depending on the browser - load another page specifically designed for that browser
Browser detection is flawed and unreliable, and serving specific documents as suggested is a complete waste of time and effort.

Originally Posted by
Twey
Am I correct in thinking that you only say this because IE doesn't parse it as XML properly?
Not entirely, but it's the most significant argument. However, don't forget that other user agents like Lynx and GoogleBot can't parse XHTML, either.
See No to XHTML and Sending XHTML as text/html Considered Harmful, first.
IE still does render XHTML
Of course it doesn't.
if sent with a text/html mimetype
It's not XHTML then, is it? So what, pray tell, is the point? If you're going to serve HTML, write HTML. It's that simple.
[...] there is no price to using it
That may, or may not be true. It depends on the content. For instance, a non-trivial client-side script is unlikely to work for both documents, so you'd have to write, test, maintain, and negotiate between two scripts, as well as two documents, that essentially do the same thing. Another is that if the document uses namespaces, it cannot be simply served up to HTML-only user agents with a different MIME type, document type declaration, and end-tag changes.
(except to make sure to serve IE a different header [...]
That is not all you'd do. Not by a long shot. It also has nothing to do with IE.
and the other browers will benefit from it.
Depends how you define 'benefit', considering that browsers that do parse XHTML typically do it less well than when served HTML (Mozilla, Opera 7.x, and Konqueror are all examples).
XHTML has been designed from scratch.
No it hasn't. It's just a reformulation of HTML.
Mike
Bookmarks