How is the use of comments and how do you write comments in HTML?

We are using it for the comments because if any person resigns from any software company then the other developer understands easily the program. It is very helpful for understanding the code by the other developer. We select those lines on which we comment it. Press the control and forward slace then the selected line is commented out.

<p> Hello World </p> <!-- it is a paragraph - - >