what will happen if the doctype is not specified in the html web page?

Report
Question
792 views

Not mentioning DOCTYPE will pose threat to browser compatibility and the use of older versions of HTML. The browser will not support the use of certain new features and tags that come with latest versions of the mark up languages. The purpose of DOCTYPE is to tell the browser what type of HTML you are writing. It is not valid to omit the DOCTYPE. There is no “Standard” format. The browser will just try to parse HTML as best it can. But not all elements will be displayed correctly. DOCTYPE is a required part of all HTML documents.

Please explain why do you think this question should be reported?

Report Cancel
<!DOCTYPE html>
<html>
<head>...</head>
<body>...</body>
</html>

Thread Reply

Leave an comment

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>