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
2 Antworten
+ 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☺️☺️.
+ 2
you can not put this , but its not recomended
https://stackoverflow.com/questions/5641997/is-it-necessary-to-write-head-body-and-html-tags