HTML Document Declaration

HTML Document Declaration

(<!DOCTYPE html>): The <!DOCTYPE html> declaration at the very

top of an HTML file informs the browser that the document is HTML5. This helps the browser render the

page in standards-compliant mode, avoiding quirks mode . It is not an HTML tag, but a crucial

preamble.

<!DOCTYPE html>

<html lang=”en”>

<head>

<meta charset=”UTF-8″>

<title>My Page</title>

</head>

<body>

<!– Content goes here –>

</body>

</html>

Scroll to Top