HTML Comment Line
To place a comment inside a block of HTML code you should enclose it between <!-- and -->. Make sure there are no spaces between any of the four characters at the beginning of the comment and the "-->" string doesn't appear throughout your comment. Here are two examples of good and bad comment lines in HTML
HTML Example:
< !-- This is not a valid HTML comment -->
Result:
< !-- This is not a valid HTML comment -->
Share Tweet