Thread: DOCTYPE
View Single Post

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

Jerry wrote:
> 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.
>


That's your first mistake. Don't let ANY product do ANYTHING for you
unless you understand what it's doing. Learn HTML and you'll be much
better off.

The best HTML editor in the world is notepad on windows or vi on
Linux/unix. They force you to learn how to do it right.

>> 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.
>
>
>


See above.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

Reply With Quote