Role of comments
A comment is basically a text note that gives us explanation about what is written in next few lines of code for eg in html
[
<!-- This is comment for adding paragraph -->
<p> This is a paragraph </p>
]
You can say it acts as a documentation of code . we use comments to enhance readability of code .