The code still runs even after the <html> tag is removed from the top then what is the point of having it? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

The code still runs even after the <html> tag is removed from the top then what is the point of having it?

even the ending tag also

8th Aug 2018, 10:33 AM
Vicky Nanny
Vicky Nanny - avatar
2 Answers
+ 3
Yes it works in all modern browser if we dont write html or head tags(All modern browser does it for us if we miss or dont write). But its like hit or miss. Specially old browser cant render page if html tag is missed. Also you dont know which browser your user is using. So its good practice to include these tags. Hope this helps☺️☺️.
8th Aug 2018, 10:39 AM
Meet Mehta
Meet Mehta - avatar
8th Aug 2018, 10:42 AM
The Ophiuchus
The Ophiuchus - avatar