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@xxxxxxxxxxxxx
==================

.



Relevant Pages

  • Re: What is a good tool to search for files/text?
    ... it found text that have *.html (such ... > "jerry s" wrote in message ... > behind that design is to "limit" the number of hits. ... > some filter components that ignores certain "text" words or phrases. ...
    (microsoft.public.windowsxp.general)
  • Re: Creating a File Depot
    ... Use the "File Field" control on the HTML toolbar. ... "Jerry Camel" wrote in message ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Message bodies losts
    ... Jerry, tools>options>read and see if read all in plain text is checked... ... that might explain the attachments because the HTML part of HTML emails does ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress)
  • Re: Can you rename objects in Powerpoint (ex. rename Rectangle 9
    ... > Jerry, if you don't need to convert to HTML, you don't need to spend a ... > penny. ... And speaking for the guy who wrote the thing (and I know he won't ...
    (microsoft.public.powerpoint)
  • Re: Creating a File Depot
    ... I'm assuming you mean the "File Field" control on the HTML toobar, ... Jerry ... > In short, you can use the file upload control on your toolbar, or type it ...
    (microsoft.public.dotnet.framework.aspnet)