- The comment tag is used to insert comments in the source code.
- Comments are not displayed in the browsers.
- You can use comments to explain your code, which can help you when you edit the source code at a later date. This is especially useful if you have a lot of code.
- The comment tag is supported in all major browsers.
<html> <head> <title>Anchor</title> </head> <body> <!--This is a Comment. Comments are not visible on browser.--> <p>This is my simple example for comment.</p> </body> </html>
In the above example, we have used comment tag. The text inside the comment tag is not visible on browser.