Html Comment Syntax:
<! - - Data are not display in the browsers -->
In Html the content is unheeded by any browser which we are placed in between comment tags.
Add comments into your html document to clarify your code, which may assist you after you, edit the source code at a later date. This is often particularly helpful if you’ve got lots of code and also when you debugging the html code.
<! – Contact form start here - -> <div class=”contact-form”> form code </div> <! –Contact form end here - ->
Nested comment allowed?
No, nested comments are not allowed, you cannot define comment tag inside the comment tag. You must additionally ensure that there are not any spaces within the start-of-comment string.
<!DOCTYPE html> <html> <head> <title>Invalid Comment </title> </head> <body> <!-- This is <!— invalid -- > comment --> </body> </html>