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

Why <!DOCTYPE HTML>???

Why do we use this in html

11th Apr 2018, 4:30 PM
Rehan
3 Answers
+ 8
It tells your browser what html version are you using.
11th Apr 2018, 4:32 PM
Toni Isotalo
Toni Isotalo - avatar
+ 3
it's symbolises that's the code you are writing is on the current html code which is html 5,and also tell the browser what version you are using
11th Apr 2018, 4:35 PM
Jude Ndubuisi Jr.
Jude Ndubuisi Jr. - avatar
+ 1
it's symbolises about the HTML version you are using like if you wtiiting <html> it means you are using the old version of html but if you use <!DOCTYPE html > it means you are using Html 5😉
11th Apr 2018, 4:59 PM
Ujjwal Kumar
Ujjwal Kumar - avatar