Thread: DOCTYPE
View Single Post

  #3 (permalink)  
Old 02-28-2008
Jerry
 
Posts: n/a
Default Re: DOCTYPE

Michael Fesser wrote:
> .oO(Jerry)
>
>> here's what I'm using for my PHP files:
>>
>> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
>> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
>> <html xmlns="http://www.w3.org/1999/xhtml">
>> <head>
>> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

>
> Transitional doesn't really make sense for new sites, since you're not
> transitioning from anything. And neither does XHTML, unless you have an
> explicit need for it and know exactly what you're doing.


thanks. That's curious, because everything that I quoted above is
what is inserted by Dream Weaver for new PHP files.

> HTML 4.01 Strict(!) is still the document type of choice in most cases.


....

> In short: If you want to use UTF-8, you should do it consistently.


My conclusion after just now reading up is that I shouldn't want
to. My visitors will all be US or Western Europe. Latin 1 (aka
8859-1) is what is served by the webserver (although it also
accepts UTF-8). Latin-1 is also the default for PHP.

I also just noticed that Dream Weaver doesn't even offer Latin 1
as an option for the default encoding - so maybe it is DW that is
wacky.


Reply With Quote