DOCTYPE | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1


Why exactly do we use DOCTYPE HTML ?? And which are the other attributes values of it???

6th Mar 2022, 12:31 PM
Prince Ash 🇵🇰
Prince Ash 🇵🇰 - avatar
1 Answer
+ 4
We use this to tell browser what version of html we will be using. For html5 we only type <!DOCTYPE html> but for html4 we was using some long attribute List of all valid doctypes
6th Mar 2022, 12:34 PM
PanicS - avatar