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

Code Example 1

<!-- a comment in html -->

Code Example 2

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

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

Code Example 3

<!-- this will be ignored -->

Code Example 4

Insert a single-line, or multi-line comment. 
Comments are designated by the tags <! -- and -->

Use the comment function to hide scripts on unsupported browsers
. If you are programming in JavaScript or VBScript, 
you can use the comment function to hide the script on browsers 
that don't support it. Insert the comment at the start of the 
script, and end it with //--> to ensure that the script works 
on browsers that do support it.

Code Example 5

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

Code Example 6

<!-- Write your comments here -->

Learn ReactJs, React Native from