<!DOCTYPE HTML> | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

<!DOCTYPE HTML>

what purpose using doc type in html?

6th May 2018, 4:52 PM
B.Anitha
B.Anitha - avatar
2 Answers
+ 7
It tells the browser about the document type and HTML version, so that different browsers used by different clients on different devices give consistent output. https://www.w3schools.com/tags/tag_doctype.asp
6th May 2018, 4:57 PM
DAB
DAB - avatar
+ 2
It is an instruction given to the program that which HTML version you are using 😉😉 https://www.w3schools.com/tags/tag_doctype.asp
6th May 2018, 5:05 PM
Ujjwal Kumar
Ujjwal Kumar - avatar