[thelist] doctype question

Liorean Liorean at user.bip.net
Wed Mar 20 09:25:00 CST 2002


At 21:07 2002-03-20 +0800, Michael Efford wrote:
>Hi all,
>
>I am redeveloping a site that has been written in XHTML and have found that
>because it isn't validating, the layout (a huge nested table nightmare)
>isn't working in Netscape 6 and Mozilla.
>
>Most of site does validate as XHTML (I have used <br /> etc..) but because I
>am running out of time on the project I just want to make it all work. If I
>change the doctype to Transitional HTML then it does. So my question is...
>is there any problem using XHTML tags in a standard Transitional HTML
>document?  There doesn't seem to be so far but I thought I had better check.

There is one single problem that I can think of, if you use:
   <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">
you have to use HTML as root element. If you on the other hand use
   <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">
you have to use html as root element.

The doctype specifies the root element in a case-sensitive way.

// Liorean




More information about the thelist mailing list