Re: doctype header

by J_A_B(at)t-online.de (Jens Brueckmann)

 Date:  Sat, 22 Nov 2003 18:17:04 +0100
 To:  "hwg-techniques(at)hwg.org" <hwg-techniques(at)hwg.org>
 References:  anythingulike
  todo: View Thread, Original
   Hi Pat,

   although you specify a character encoding in the xml-declaration right
   at the beginning you should better use a meta-tag for conveying the
   character encoding information:

   <meta http-equiv="content-type" content="text/html; charset=UTF-8" />

   Some webservers are not configured to understand the xml-declaration and
   browsers tend to switch into quirks mode when being confronted with it.
   Have a look at
   http://www.webstandards.org/learn/reference/prolog_problems.html for
   more information about this problem.

   Just forget about the xml-declaration and start your documents right
   away with the Doctype Declaration.

   I am also not quite sure whether the language attribute lang="en" is
   allowed in XHTML, though it might be in the transitional flavour.

   How Doctype Declarations generally influence rendering of pages in
   different browsers you might learn from the following pages.

   Opera: http://www.opera.com/docs/specs/doctype/
   Mozilla: http://www.mozilla.org/docs/web-developer/quirks/doctypes.html
   Internet Explorer:
   http://msdn.microsoft.com/library/en-us/dnie60/html/cssenhancements.asp?frame=true#cssenhancements_topic2

   Yours,

    jens

HWG hwg-style mailing list archives, maintained by Webmasters @ IWA