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

Code Example 1

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

Code Example 2

<!DOCTYPE html>
This tag shows that it is running HTML5

Code Example 3

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

Learn ReactJs, React Native from akashmittal.com