This content has been marked as final. Show 4 replies
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
> " http://www.w3.org/TR/html4/strict.dtd">
The most demanding. Will not allow you to get away with deprecated
(possibly destined to be phased-out at some undefined point in the
future) HTML. Many people recommend this as a way of enforcing cleaner
code and unlearning bad habits. Not that you have any, I'm sure.
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
> " http://www.w3.org/TR/html4/loose.dtd">
This is a more lenient doctype that will allow you to use the deprecated
HTML, which may or may not work as you expect.
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"
> " http://www.w3.org/TR/html4/frameset.dtd">
Are you making a frameset? If yes, use this one.
With regard to the XHTML doctypes (below), if you have to ask you don't
need to use them.
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
> " http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
> " http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
> " http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
> XHTML 1.1 DTD
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
> " http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
A big benefit is that using a doctype will allow you to validate your
code. This checks your page and flags any mistakes you may have made so
that you can fix them if it makes sense to do so. Pages with no doctype
cannot be validated because the doctype tells the validator what
standards to check the page against.
James M. Shook
But how to do I know which one to use for my page, they all seem to be a
bit different? Does it depend on the content? How I am building my pages?
Start with one where you are most likely to produce valid code. Start with
HTML4.01 transitional. Validate your pages. As you become more
knowledgeable of well-formed HTML, and proper HTML syntax, you can graduate
to HTML4.01 Strict, and if you want, eventually move on to XHTML.
Your choice depends on your knowledge of HTML.
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
"Brian" <email@example.com> wrote in message
> But how to do I know which one to use for my page, they all seem to be a
> bit different? Does it depend on the content? How I am building my pages?
get it. Thanks a lot!