|
Posted by David Dorward on 02/02/06 23:00
John Salerno wrote:
> Aside from " />", is there any difference between HTML 4.01 and XHTML 1.0?
Several. You can find the details at http://w3.org/TR/xhtml1/
There are also some undocumented changes.
> But I guess one reason I've gone with XHTML is that it will eventually
> replace HTML.
Really? How do you know?
Besides, XHTML 2.0 isn't going to be backwards compatible with 1.0 anyway.
> It won't be an alternate version, and it doesn't seem
> likely that there will be an HTML 5.
WHATWG disagree.
> I've never seen a problem with the /> tag yet
I have. Conforming browsers treating XHTML as HTML (which they should when
it is served as text/html[1] will treat <foo /> as <foo>> and display >
characters all over the document.
> so just like there's no real reason to use XHTML, there doesn't seem to be
> much of a reason *not* to.
Now you know better.
[1] And IE (among others) will prompt the user to download XHTML served with
the correct content type rather than displaying it.
--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
Navigation:
[Reply to this message]
|