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

Code Example 1

<!-- Example Comment -->

Code Example 2

<!-- This text is commented in html -->

Code Example 3

<!--This is a comment in html.-->
<!--You can put comments enywhere! It does not care if it is mid peice of
code in a peice of code! You must put the ending arrows in or it will
think everything is a comment! Note you can comment over multiple lines.
Use a ! at the start arrow, this may not make sence as the rest of
html uses tags where ! is at the ends.-->

Code Example 4

<! –– ––>

Code Example 5

<!-- i am a comment -->

Code Example 6

<! –– ––>

Learn ReactJs, React Native from akashmittal.com