HTML Comment tag with Example
In HTML Comment tags are used to insert comments in the HTML code.
HTML code written between comment tag can’t be execute.
<!-- Write your comments here -->
Advantages of comment
- It help others to understand what you are doing actually.
- Remind yourself of what you did .Some time we forget what we write before one year ago. So comment help us to know about that particular code.
<p>This is a paragraph.</p>
<!-- <p>This is a paragraph.</p>-->
<!-- Comment -->
Run it yourself