Check out example codes for "what file extension sould you use to save a website". It will help you in understanding the concepts better.

Code Example 1

You can save an HTML file ending with .htm or .html

Learn ReactJs, React Native from akashmittal.com