because even without using html tag works. body tag and other tags works perfectly
Yes, the tag is necessary as it is the root element of an HTML document. It helps browsers properly structure and interpret the web page. Even if omitted, browsers auto-add it, but it should always be used for correct coding practice.