Writing comments in HTML. To comment in HTML, just make sure you enclose your comment in between <!--and -->. The comment can comprise a single line or multiple lines. Syntax <!-- Write your HTML comment here--> Note: There is an exclamation mark (!) in the start tag, but none in the end tag.How and why to add comments to your HTML?
HTML comments are not displayed in the browser, but they can help document your HTML source code. ... HTML Comment Tag. You can add comments to your HTML source by using the following syntax: <!-- Write your comments here --> Notice that there is an exclamation point (!) in the start tag, but not in the end tag.