Comment tags are used to add comment lines in the HTML source code. the following syntax is used to add comments to the source code. an exclamation mark (!) is written at the beginning of the tag but not at the end of the tag. Browsers don’t show the comment lines.
<!-- Write your comments here -->
comment lines are useful to place notification, comments, any explanation for a particular piece of code. Comments are also great for debugging HTML, because you can comment out HTML lines of code, one at a time, to search for errors
<!-- This is a comment --> <p>This is a paragraph.</p> <!-- here is ends the first paragraph. -->
One thought on “HTML COMMENTS”
Comments are closed.