The <!DOCTYPE> Declaration

  • The <!DOCTYPE> declaration represents the document type and helps browsers to display web pages correctly.
  • It must only appear once, at the top of the page (before any HTML tags).
  • The <!DOCTYPE> declaration is not case sensitive.
  • The <!DOCTYPE> declaration for HTML5 is:
<!DOCTYPE html>

HTML Versions

HTML Versions Year
HTML 1991
HTML 2.0 1995
HTML 3.2 1997
HTML 4.01 1999
XHTML 2000
HTML5 2014