How to write comments in HTML ?
In this article, we have to pass a comment for an HTML by using <!– Comment –> tag. In html, we can add single-line comments and multi-line comments. These are used to insert comments in the HTML code. It is helpful to understand complex code. The comment tag is useful during the debugging of the codes.
Syntax: Single line comment
<!-- Comments here -->
Syntax: Multi line comment
<!-- This is multi line comments. -->
Example: The following code illustrates a single line comment.
Example 2: The following code illustrates the multi line comment.