Doctype in Html5

Advertisements

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 Advertisment

Buy This Ad Space @$20 per Month, Ad Size 600X200 Contact on: hitesh.xc@gmail.com or 9999595223

Magenet is best Adsense Alternative here we earn $2 for single link, Here we get links ads. Magenet

For Projects 9999595223

Google Advertisements


Buy Websites 9999595223

Buy College Projects with Documentation Contact on whatsapp 9999595223. Contact on: hitesh.xc@gmail.com or 9999595223 Try this Keyword C++ Programs

Advertisements