Doctype


Prev Tutorial Next Tutorial

Doctype

DocType declaration at the top of HTML document specifies the type of document and this document type declaration is required in XML documents. But in HTML it is optional. It is not a HTML element.

Syntax

<!doctype html>

Example

<!doctype html>
<html>
<body>
<p>This is my first Html code.</p>
</body>
</html>

Prev Tutorial Next Tutorial

Advertisements




Facebook Likes

Advertisements