HTML Comments
In HTML, you can use comments to include explanatory notes or annotations within your code. Comments are not displayed in the browser when the page is rendered and are intended for developers or anyone reviewing the code.
There are two types of comments in HTML:
Single-line Comments:
- Single-line comments are created using the <!-- --> syntax.
multi-line Comments:
- Multi-line comments can span multiple lines and are also enclosed in <!--and -->