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

Code Example 1

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

Code Example 2

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

Learn ReactJs, React Native from akashmittal.com