> Supporting XHTML doesn't mean you're not supporting HTML - XHTML is > just an evolution of HTML. I think it's more significant that Mozilla > is recommending "Strict" for HTML than the HTML itself. HTML permits > sloppier coding - XHTML doesn't. But the Strict DTD forces you to stop > being sloppy.
HTML4.01 also has Strict DTD, XHTML has Transitional DTD. XHTML is much more draconian to the errors - alas, only when served as application/xhtml+xml, in other cases, as it was already pointed out, the whole "correct" rendering in browsers relies on sloppy implementation of HTML engine. > > But the point about moving towards XHTML is a bit irrelevant - why > would you want to hang on to HTML when you're going to be doing all > your styling with CSS? Take out all the styling codes, remember to > close tags, and write it all in lowercase - and you're already writing > transitional XHTML. Also don't forget that element selectors in CSS also should be lowercase, remember body/html issue, be aware of document.write not working, and keep in mind to use createElementNS instead of just createElement for DOM scripting. Remember, you will have IE in quirks mode if your XHTML does not use UTF-8 or UTF-16. When other character encoding is used XML declaration is required. Take a note, that only <, >, &, ", and ' may be safe to use. Don't be surprised, when good old way of hiding scripts from the older browsers using comments will comment your script out altogether. Some may be worried by the lack of support for incremental rendering in Gecko and complete lack of support for XHTML in IE (and IE7 will not support XHTML either). For some feeding XHTML to the HTML parser (which is the case with text/html MIME type) may make no sense. Regards, Rimantas -- http://rimantas.com/ (yes, xhtml which is wp default, which annoys me) ______________________________________________________________________ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
