How HTML5 doctype is different from normal html doctype ?

<!DOCTYPE html> is a DECLARATION. It tells browsers what version of HTML are you using, which helps them to properly render the elements on webpage.


HTML tag have three functions:

  1. It tells the browser that this is an HTML document.
  2. It represents the root of an HTML document.
  3. It is the container for all other HTML elements. (except for the <!DOCTYPE> tag)