Forum Moderators: phranque

Message Too Old, No Replies

Document Type Definition

         

Avi1985

4:16 pm on Sep 10, 2005 (gmt 0)

10+ Year Member



I dont undertsand how to use DTD, what it gives me, and how can i know what type of html is my Document?

moltar

5:15 pm on Sep 10, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



DTD is an acronym for document type definition. A separate document that contains formal definitions of all of the data elements in a particular type of HTML, SGML, or XML document. By consulting the DTD for a document, a program called a parser can work with the markup codes that the document contains.

To know what kind of HTML file you have, you need to write with a specific standard in mind (e.g. HTML 2.0 [w3.org], HTML 3.2 [w3.org], HTML 4.01 [w3.org], XHTML 1.0 [w3.org]). If you didn't write with a specific standard in mind, then you need to pick a standard right now and adjust all your HTML accordingly. An easy way to do this is to use HTML Validator [validator.w3.org] to check the syntax and correct all the errors.