HTML – Comments

Comments are some text or code written in your code to give an explanation about the code and it will not visible to the user but it improves the code readability.

These comments help in documentation and debugging purpose. Comments can be possible in two ways:-

1. Single line Comment

We can add comments using <!– HTML code or comment text here — >. So, if we write anything between these tags, it will not be displayed over the browser.

<!-- Write your comment here -->

2. Multi-line Comment

We can also add comments in multiple lines at a time. In multiline comment, we can give any description about the code or any debugging comment.


Write your comment here
Write description of code

It will not display in any webpage


Supporting browser

<!– –>YesYesYesYesYes