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

Code Example 1

<!-- a comment in html -->

Code Example 2

<!-- Write your comments here -->

Code Example 3

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

Code Example 4

<!--This is a comment. Comments are not displayed in the browser-->

<p>This is a paragraph.</p>

Code Example 5

<!-- This is an HTML note -->

Code Example 6

<!--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.-->

Learn ReactJs, React Native from