What does Doctype mean when building a website? Is it necessary? Will dreamweaver doctype info be outdated?
I am building websites with dreamweaver mx 2004 and when i create a new page this pops up
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
Now when I have showed that code to others on yahoo answers somebody told me to change that to
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-s…
Why would I change it if dreamweaver put that in there for me? Does it get outdated and the browsers won’t rea my code correctly?
Why do I not put this info in cf includes? Is it needed on every page?
Tagged with: Building Websites • cf • doctype • dreamweaver mx 2004 • loose dtd • lt • pops • quot • yahoo • yahoo answers
Filed under: Building Websites
Like this post? Subscribe to my RSS feed and get loads more!



According to HTML standards, each HTML document requires a document type declaration. The "DOCTYPE" begins the HTML document and tells a validator which version of HTML to use in checking the document’s syntax.
Dreamweaver is inserting the Doctype based on the code it is going to generate and you should leave it as is. Someone is saying you could be more jazzy and be coding to the strict XML version standard. Unless your borrowing someone elses XML code leave the DocType as generated.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
This declares the document to be HTML 4.01 Strict. HTML 4.01 Strict is a trimmed down version of HTML 4.01 that emphasizes structure over presentation. Deprecated elements and attributes (including most presentational attributes), frames, and link targets are not allowed in HTML 4 Strict. By writing to HTML 4 Strict, authors can achieve accessible, structurally rich documents that easily adapt to style sheets and different browsing situations. However, HTML 4 Strict documents may look bland on very old browsers that lack support for style sheets..
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
This declares the document to be HTML 4.01 Transitional. HTML 4 Transitional includes all elements and attributes of HTML 4 Strict but adds presentational attributes, deprecated elements, and link targets.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
This declares the document to be XHTML 1.0 Strict. XHTML 1.0 Strict is an XML version of HTML 4 Strict.