Definition and Usage
When you work with code, you often find yourself in need of some comments to make sense of the code and to document things in the code. This is when the HTML comment tag can be useful.
You use this either by just writing a comment in proximity of a set of code, but you can also use it to comment out blocks of code. This is done by placing the starting tag before the block of code and then the closing tag after the block of code.
The HTML comment tag will not show in the browser, but it will be in your code for anyone that inspect it.
Example code
<!--This is a comment. Comments are not displayed in the browser-->
<p>This is a paragraph.</p>
Click the Code tab above to see this in action.