The DOCTYPE declaration must be the very first thing in your HTML document, before the <html> element. 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