It is important for doctype html in HTML | SoloLearn: Learn to code for FREE!

+1

It is important for doctype html in HTML

4/9/2021 6:21:18 PM

Rupas Macson

4 Answers

New Answer

+5

Doctype stands for Document Type Declaration. It informs the web browser about the type and version of HTML used in building the web document. This helps the browser to handle and load it properly. While the HTML syntax for this statement is somewhat simple, you must note each version of HTML has its own rules.

+4

Yes, the doctype or DTD tag is important as it informs the browser which version of HTML it is parsing. Without a DTD or doctype tag the browser has to apply its best guess, which may result in the page not displaying as the author intended.

+2

Not important but it helps browser to know the version

+1

Thanks you