This article is first published on hackinbits.com.
Doctype is required in HTML document for legacy reasons. Its main purpose is to prevent…