Doctype in Html5
Advertisements
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.
Google Advertisment