Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

What can DTD do for me?

Posted on 1998-06-25
1
Medium Priority
?
153 Views
Last Modified: 2013-11-19
Is DTD(document type declaration)used by the browser or is it used only by validation services?  I'm considering adding <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0
Frameset//EN" "http://www.w3.org/TR/REC-html40/frameset.dtd"> to a frames page.  Is this a good idea?
0
Comment
Question by:jerlands
1 Comment
 
LVL 75

Accepted Solution

by:
Michel Plungjan earned 300 total points
ID: 1844390
I only used doctype for validators but since I am using HOMESITE with validation built-in, I have stopped using it. The strange thing is that a lot of people include one and then immediately ignores it and violate it.

    If you insist, here is what IRT says:

A DOCTYPE statement (or DTD), located on the first line of an HTML document, designates the standard of HTML which you have chosen to use.

HTML Validators require DTD statements. Without a DTD, they will usually fall back to a default DTD (many times HTML 2.0), most times causing many errors.

Three common DTDs are:

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"> for HTML 4.0
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> for HTML 3.2
    <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> for HTML 2.0

There are many more DTD statements available for use...

Try http://www.ccs.org/html/dtd/  and http://www.ccs.org/html/dtd/why/index.html 
for more info

Michel
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Find out what you should include to make the best professional email signature for your organization.
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
Suggested Courses

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question