HTML comment is some text or code written in your code to give an explanation about the code.
Writing comments is a good practice of coding so that the coder and the reader can easily understand the code. Comments makes code easy to understand and increase the readability of code.
Types of HTML comments:
Single-line HTML Comment:
If you want to add comment on a single line HTML code then you can use .
Multi-line HTML Comments:
In HTML code, we can also add comments on multiple lines at a time. To add multi-line comments you can use <!–content–>.