HTML Doctype <!DOCTYPE>

Usage

The HTML doctype tag is the first thing that must be at the start of the document, even before the opening html tag.

This is not a tag, rather a declaration to the browser on what type of page to expect.

Code:


<!DOCTYPE html>

<html>

<body>

Content of the page goes here.

</body>

</html>

Required Attributes

  • None

Optional Attributes

  • None