Thursday 20 May 2021

HTML < !DOCTYPE > Declaration

 Usage and definition

The <!DOCTYPE> declaration must start all HTML documents.

The statement is not an HTML tag. It's "information" about what sort of content to expect from the browser.

The statement is straightforward in HTML 5:



<!DOCTYPE html>

<html>

<head>

<title>Title of the document</title>

</head>

<body>

The content of the document......

</body>

</html>



No comments:

Post a Comment

Popular Post