DOCTYPE html in HTML5

What is html ? Syntax of HTML5 Doctype Declarationn

What is !DOCTYPE html in HTML5?

The Document Type Declaration needs to be present at the beginning of a document. The DOCTYPE is an instruction to the web browser about the version of markup language in which a web page is written. The DOCTYPE is not actually an element or HTML tag but it needs to be the first thing in your web page document. In HTML, the DOCTYPE is case insensitive always.

Syntax

<!DOCTYPE html>

The three conforming variants of the HTML5 DOCTYPE declarations are as:

  1. <!DOCTYPE html>
  2. <!DOCTYPE html SYSTEM "about:legacy-compat" >
  3. <!DOCTYPE html SYSTEM 'about:legacy-compat' >

The term "legacy-compat" or 'legacy-compat' refers to compatibility with legacy producers only.
The above quoted string "about:legacy-compat", which must be written in lower case. This quoted string, however, may also be quoted with single quotes, rather than double quotes.

You may also like :

One thought on “What is html ? Syntax of HTML5 Doctype Declarationn

  • […] and well crafted bootstrap theme for the corporate business website. This is a clean and modern HTML5 based template to use for showcase your business services and products, corporate, business, […]

Comments are closed.