what will happen if the doctype is not specified in the html web page?
ReportQuestion
2 years ago 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.
<!DOCTYPE html>
<html>
<head>...</head>
<body>...</body>
</html>
Thread Reply