DOCTYPE – HTML Versions – HTML Tutorial

This “HTML versions and doctype” post giving complete information about HTML document type declarations including strict type, transitional type and HTML-5 document type. This page also provides information of all the HTML versions including years.

HTML Versions

Version      and      Year
HTML          –       1991
HTML 2.0    –       1995
HTML 3.2    –       1997
HTML 4.01   –      1999
XHTML        –      2000
HTML5        –      2014


Simple HTML document :

<!DOCTYPE html>
<head><title>Page Title</title></head>
<h1>My First Heading</h1>
<p>My first paragraph.</p>


  • “DOCTYPE” means HTML document type.
  • Every HTML document requires a document type declaration.
  • The DOCTYPE declaration defines the document type to be HTML.
  • It tells a validator about the version is using an HTML document to be interpreted.
  • The <!DOCTYPE> declaration helps the browser to display a web page correctly.
  • There are several document types on the web.
  • To display a document correctly, the browser must know both type and version.
  • The doctype declaration is not case sensitive. All cases are acceptable.
  • Earlier doctype declarations were hard-to-remember.


For XHTML 1.0 Strict:

<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN”


And for HTML4 Transitional:

<!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN”


HTML5 provides solution, in HTML5 document we just need to provide “DOCTYPE” element as

<!DOCTYPE html>
<!doctype html>
<!Doctype Html>
All the above declarations are true .

> Heading tags <

Share this