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 comments
Multi-line comments
Single-line HTML Comment:
If you want to add comment on a single line HTML code then you can use .
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.Ok