What is the importance of DTD and how it affects the display of the web page page at runtime
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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.