a document type definition(DTD for short) tells the browser what type of web page your sending. you have 3 types for each version(transitional, strict and frameset).
transitional is great for backwards compatability and such.
strict is the best, it offers full compliance to the standards if it passes.
frameset is the same as transitional, but frameset, frame and iframe elements are permited.
your proberly better to google it though, since I'm terrible at explaining things.
If you are using PHP please use the [PHP] and [/PHP] forum tags for highlighting...
The same applies to HTML and the forums [HTML][/HTML] tags.
DTD is the definition of the elements and attributes you are using on your page and not the type of page you are sending. It has nothing to do with which version of html you are are using. There is no need for new web pages to use the transitional doctype.
The DTD defines that part of the HTML version definition that the browsers are supposed to follow. That part makes up about 30% of the standards that someone writing web pages to that HTML standard should follow.
callumd, a DTD is to HTML as grammar is to writing. They each define the syntax rules dictating what symbols or words may appear and in what order. And a DOCTYPE is a reference to a particular DTD.
So for any given document, a software application can read the DOCTYPE, retrieve the DTD referenced by that DOCTYPE, and then use the syntax rules defined in that DTD to parse the rest of the document.
Bookmarks