HTML comments are used to describe any line of code, and it is not displayed in the browser output, but it will appear on the view page source.
As we know that comments describe your code, so when you work with other developers in the same project it helps other developers to understand your code.
The HTML Comment start with
<!-- and end with
-->. And the content between these tags is considered as a comment.
<!-- this is a comment -->
<!-- Users List --> <ul> <li>John</li> <li>Barry</li> <li>Mark</li> </ul> <!-- End of the users list --> <!-- The following paragraph will not be displayed, because it is inside the comment section. <p>Hello World!</p> -->