views:

210

answers:

2

What is the importance of DTD and how it affects the display of the web page page at runtime

A: 

DTD defines the type of document and in particular the specific version of the HTML spec you intended to target.

AnthonyWJones
+1  A: 

As mentioned, this tells the browser what exact type of document (eg. HTML version) you are targeting. In particular some browsers have a "quirks mode" and a "strict mode" which both render (display) your HTML differently at runtime.

There is a somewhat useful DOCTYPE article on A List Apart to help you choose the right DTD.

andypaxo
thats of gr8 4 somebody like me who have just started............thnx a lot
Vinay Pandey