Doctypes in HTML?

Post image

Doctypes in HTML 5 Tells browsers to understand the version of HTML. The document is written for better interpretability.

You should always include the declaration at the top of the HTML document file before Write thetag.

HTML 5 Doctype declaration:

<!DOCTYPE html>

HTML 5 Doctype Example:

<!DOCTYPE html>
<html lang="en">
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>HTML 5 Doctype declaration</title>
       <h1> HTML 5 Doctype declaration</h1> 

Currently, Every Code Editor Like Vscode, Atom, Notepad++and other Code Editor. By Default With Shortcut key, add Doctype Html5 code on your File.

In Vscode Editor For Html 5 Doctype Shortcut key ! Type In Your File Vscode Emmit Abbreviations Automatic Add Html Doctype Example code on your file.

Contact me

You May Also Like

comments powered by Disqus