Need of <!Doctype html> tag

im getting confusion with Doctype html tag . if i does not mention this tag inside the code, my web page also works correctly so why any use this tag plz tell.

browsers have become very clever, but you should still declare doctype to ensure that all browsers your clients use, render you document correctly. What if your webapp consist of html and xml?

You can read about it here, and its better to get started with good habits early on, then trying to build in those habits later

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.