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

Html and HTML5

What's the difference between <html> and <!doctype html>

30th May 2018, 4:14 PM
Cyber5
Cyber5 - avatar
3 Answers
+ 9
<!doctype html> is a declaration to the browser of the version of html u r using. https://en.m.wikipedia.org/wiki/Document_type_declaration And <html> is the the root of an html file. Without this tag ur code will not work.
30th May 2018, 4:28 PM
***
+ 8
Cyber5 After writing <!doctype html> the html editors automatically sets the version htnl5.
31st May 2018, 12:46 PM
***
0
how do I use it in the case of htlm5 Rohan Karan
31st May 2018, 12:28 PM
Cyber5
Cyber5 - avatar