What does <!DOCTYPE> describe other than the version of HTML being used and if excluded what are the consequences?
What does <!DOCTYPE> describe other than the version of HTML being used and if
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.
The doctype basically tells the browser that the page is compliant with HTML standards. Omitting the doctype can make certain browsers (chief among them, Internet Explorer) go haywire and fall back to a “Quirks Mode”, in which HTML elements aren’t rendered to standard.
Further reading: http://hsivonen.iki.fi/doctype/