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

Code Example 1

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

Code Example 2

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

Code Example 3

<!DOCKTYPE html> <!-- Start of html code -->
      /* CSS */
</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" "">
<!-- XHTML 1.1 -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "">

Code Example 5

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

Code Example 6

<!DOCTYPE html>

Learn ReactJs, React Native from