HTML

HTML Intro

HTML Intro Quiz

HTML Intro Exercise

HTML Basics

HTML Basic Quiz

HTML Basic Exercise

HTML Advance

HTML Advance Quiz

HTML Advance Exercise

HTML Tags List

HTML Global Attributes

HTML Attributes

FAQs

doctype Declaration in HTML

  Declaration in HTML

 

 

All HTML documents must start with a declaration i.e. It is information to the browser about what document type to expect. We cannot say that it is a tag but it's a declaration.

 

Syntax:-

 

It has the following four syntaxes:-

 

  • <! DOCTYPE  HTML >
  • <! DocType  HTML >
  • <! Doctype  HTML >
  • <! doctype  HTML >

Code Explanation

All Tutorials related to HTML Tags List

All Sections related to HTML