Doctypes in HTML 5 Tells browsers to understand the version of HTML. The document is written in for better interpretability.
The declaration should always be included at the top of the HTML document file, before Write <html> tag.
HTML 5 Doctype declaration:
HTML 5 Doctype Example:
Currently Every Code Editor Like Vs code, Atom, Notepad++and other Code Editor. By Default With Shortcut key, add Doctype Html5 code on your File.
In Vs Code Editor For Html 5 Doctype Shortcut key ! , Type In Your File Vs Code Emmit Abbreviations Automatic Add Html Doctype Example code on your file.