[thelist] Doctypes, xml declarations and charsets
Peter-Paul Koch
thelist at lists.evolt.org
Mon Nov 11 11:59:01 2002
>I read that <?xml.... declarations for charset at the start of an xhtml
>doc can cause problems so I've not been using it, just this:
>
><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
><html xmlns="http://www.w3.org/1999/xhtml">
><head>
><meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
>
>
>Can anyone enlighten me on what problems i might cause with which
>browsers by using an xml declaration?
IE6 will go back to Quirks mode, even if the doctype would switch it to
standards mode.
>conversely:
>What problems might I cause by not using one?
IE6 in Standards Mode <g>.
>I've tried reading the W3C specs but they make my head hurt - where are
>the real world examples?
Apart from switching IE6 there is not much real world necessity for the xml
declaration.
--------------------------------------------------
ppk, freelance web developer
Interaction, copywriting, JavaScript, integration
http://www.xs4all.nl/~ppk/
Column "Keep it Simple": http://www.digital-web.com/columns/keepitsimple/
New: CSS Bugs in Internet Explorer 5 on Mac
http://developer.apple.com/internet/css/ie5cssbugs.html
--------------------------------------------------
_________________________________________________________________
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.
http://join.msn.com/?page=features/virus