Doctype in Html5


Prev Tutorial Next Tutorial

Doctype in Html5

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. In Html5 Doctype declaration is very simple to declare.

Syntax

<!doctype html>

Example of using Doctype

Example

<!DOCTYPE>
<html>
<body>
<p>This is my first Html5 code.</p>
</body>
</html>

Result

This is my first Html code.


Prev Tutorial Next Tutorial

Google Advertisements
Download Projects

Google Adsense Advertisements

Buy 3 Year Old Domain, Tutorialday.com, SeosmoTools.com @$200

Buy This Ad Space @$50 per Month, Ad Size 300X250 Contact on: hitesh.xc@gmail.com WhatsApp no. 8882538826

Yahoo Advertisements