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

+2

It is important for doctype html in HTML

4/9/2021 6:21:18 PM

Rupas Macson

11 Answers

New Answer

+8

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.

+3

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.

+3

Thanks you

+3

Not important but it helps browser to know the version of html

+1

0

Yes. It is important to write this in the beginning of the HTML code because it tells the browser that the code is regarding HTML so the browser will be known that the code is of HTML and it will execute the code. Instead of you will not write this code the browser has to understand that the course is regarding which program.

0

Yes, we need doctype in html document. It shows about the version of html page

0

Yh it's good because your browser will know you're using html 5

0

Yes, by this doctype, browser will know which html version you want to use

-1

Yes its very important