0
why we have to use html tag on the top of the code?
4 Answers
+ 8
It is the root of the HTML DOM tree.
+ 2
when u host your code the browsers will not know which language u used so the the code will not work. html is to tell the browser that html is used here.
+ 1
HTML5 allows writing without html-tags. But it is no good practice and will make problems eventually.
0
i wrote code without using html tag.Its working..can i write programs without using it?