Check out example codes for "html doctype". It will help you in understanding the concepts better.

Code Example 1

<!doctype html>
<html lang="fr">
<head>
  <meta charset="utf-8">
  <title>Titre de la page</title>
  <link rel="stylesheet" href="style.css">
  <script src="script.js"></script>
</head>
<body>
  ...
  <!-- Le reste du contenu -->
  ...
</body>
</html>

Code Example 2

<!-- HTML 5 DOCTYPE -->
<!DOCTYPE html>

Code Example 3

<!DOCKTYPE html> <!-- Start of html code -->
<html>
  <head>
    <title>TITLE</title>
    <script>
      //JavaScript
    </script>
    <style>
      /* CSS */
    </style>
  </head>
  <body>
    <p>Hello!</p>
  </body>
</html> <!-- And another Thing I had to fix, sorry for not adding all the slashes, thats why it did not work for some.-->

Code Example 4

<!-- HTML 5 -->
<!DOCTYPE html>
<!-- HTML 4.01 -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- XHTML 1.1 -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

Code Example 5

<!DOCTYPE html>
<!--Use the html tag too, under the declaration. -->

Code Example 6

<!DOCTYPE html>

Learn ReactJs, React Native from akashmittal.com