ankitweblogic logo
W e b t u t o r i a l s

Directory Structure

DOCTYPE Declaration

Audio and Videos tag

YouTube Videos

Elements Removed

Semantic Elements

HTML5 Basic Structure

HTML5 New Elements

Create Element

Browser Support

HTML5 Form Element

HTML5 Plug-Ins

HTML Versions


VersionYear
HTML1991
HTML 2.01995
HTML 3.21997
HTML 4.011999
XHTML2000
HTML 52014
HTML 5.12016
HTML 5.22017

!DOCTYPE Declaration

Doctype tag: Doctype is the first line in your HTML Document. Doctype refers to the DTD(Document Type Declaration) tells about the document and its version which we are using.


In HTML 4.01 Strict the DTD can be declared as
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "www.w3.org/TR/html4/strict.dtd">


In HTML 4.01 Transitional the DTD can be declarad as
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "www.w3.org/TR/html4/loose.dtd">


The doctype declaration is not case sensitive. In HTML5, DTD can be written as follows:

<!DOCTYPE html>
<!doctype html>
<!Doctype Html>