HTML Doctype


Doctype or Document Type Declaration tells about the version of an HTML Document. The Latest Version of HTML is HTML5

<! DOCTYPE Html> is HTML 5 Declaration

Doctype Declaration is the First thing we write in the HTML Document and Doctype is not HTML tag

Doctype Example

<!-- HTML 5 Document Declartion -->
<!DOCTYPE html>
<title>Page Title</title>
<link rel="stylesheet" href="styles.css">
<h1>This is a new heading</h1>