HTML !DOCTYPE declaration tag

A document type declaration, or known as DOCTYPE tells to the web browser what document to expect. This tag (or better to say declaration) must be used in any HTML website. Every web site have to start with this declaration.

Syntax of DOCTYPE tag

<!DOCTYPE html>

DOCTYPE tag is not case sensitive so you can write him in many styles, for example:

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

By: Tomas Silny
Edited: 2020-11-06 17:36:42