doctype declaration in html5 code example
Example 1: html doctype declaration
<!DOCTYPE html>
<!--Use the html tag too, under the declaration. -->
Example 2: doctype html
<!DOCTYPE html>
This tag shows that it is running HTML5
Example 3: doctype tag
<!DOCTYPE html> <!--This doesn't have closing tag like others-->
this means this is the version 5 of HTML or HTML5
Example 4:
<!DOCTYPE html>