why we have to use html tag on the top of the code?
It is the root of the HTML DOM tree.
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.
HTML5 allows writing without html-tags. But it is no good practice and will make problems eventually.
i wrote code without using html tag.Its working..can i write programs without using it?