Mike
Tue Mar 08 15:42:34 CST 2005
From what I know, which is not all-inclusive.
A DocType tells the browser what specifications you designed
the site to follow. This is supposed to allow the broswer
to better render the page to how you designed it, with the
idea being that the page will look the same regardless of
browser. A lack of or incorrect DTD will have the browser
fall back into quirks mode, aka best-guess.
What type do you have? There are 3 flavors for html v4.01
Frameset- if you are using frames, this is the one to choose
Strict- to the letter of the law. Many common terms such as
<p><font color="#ffffff"></font></p> are not in this
version. The correct syntax would be to use a style- <p
style="color: #ffffff"></p>.
Transitional- A little relaxed version of the law. The
above example would go through
Best thing to do is to try validating the page first using
the validaters at w3c.org They will point out where the
errors are, and you can then correct and retry. The
validater will allow you to try different DTDs.
"Tommy Desperate" <TommyDesperate@discussions.microsoft.com>
wrote in message
news:591C4A47-602C-4F9D-ABF1-8B3DDE2A3091@microsoft.com...
:I created my website, www.hairloss-reversible.com, with
FrontPage 2003. I
: notice that many websites have a doctype when I click on
View Source. Many
: have this specific one: <!DOCTYPE HTML PUBLIC "-//W3C//DTD
HTML 4.01
: Transitional//EN" "
http://www.w3.org/TR/html4/loose.dtd">
:
: Is there any advantage in putting a doctype at the top of
my site in code
: view? If there is an advantage, how do I decide on which
of the three or more
: doctypes to choose from?