Hi,

I've set a Doctype in the page.tpl.php for my site and with FF it works fine. But when using the Internetexplorer a part of the Doctype is lost and I'm getting some visual errors.

The Doctype set in the page.tpl.php is:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">

The Doctype displayed in the Internetexplorer:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

I was already looking for someone with the same problem, but didn't find anything. Has anyone an idea what could cause this problem?

Many thanks and best regards,

Quser

Comments

Elteto’s picture

I am not fully certain, but I will take a stab at it; what if you create a second DOCTYPE tag line with the second address?


Not sure about it, but the two values under one tag do not seem right, not even a comma between the two...

lokendra.cms’s picture

Hi Quser

Please use the Drupal Standardized Doc types.

Here are some Drupal standard Doc types:

Drupal 5:

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

Drupal 6:

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

Drupal 7:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN"
  "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd">