PDA

View Full Version : Doc Type Help and Mozilla...


RichieBoy67
05-24-2005, 11:37 PM
I need to know what to use for a doc type. when I use default for the style I am working with the site is viewed fine in IE but not in mozilla. When I delete the doc type it looks fine in mozilla and crappy in IE...

I figured one of these would work

XHTML 1.0 Transitional:
<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


XHTML 1.0 Frameset:
<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.0 Frameset//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">



any help would be appreciated... thanks :)

anyone?

Princeton
05-25-2005, 01:05 AM
"frameset" doctype is for pages that use frames

If your pages do not validate XHTML try HTML 1 TRANSITIONAL or no doctype at all.

a doctype tells the browser that the page is coded in a particular coding style eg. HTML/XHTML (transitional/strict)

Again, if the page does not validate in HTML or XHTML do not use a doctype. Browsers are more forgiving if you do not add a doctype.

RichieBoy67
05-25-2005, 01:23 AM
Yes, I tried that. After doing that the site looked perfect in mozilla but half of it was missing in IE.....lol

Thanks so much for your help!! :)

Princeton
05-25-2005, 01:25 AM
the html is really poor on the site ... you need to start looking over the entire contents and fix what is not valid