Single Line comment in HTMLA single line comment in HTML is a comment which is used to avoid rendering of a particular HTML line of code. In simple words, it is used to hide one line of HTML code from display in the web page, see below example.
<!-- this is single line comment in HTML -->
The above line is commented from single line comment technics. we can use multiple single line comment in a HTML web page, just you have to care about <!-- opening tag and --> closing tag because its proper use is very important, in case if you forget --> closing tag then it is going to affect entire rest code after <!-- opening tag, so be careful while using the comment in HTML, see more below examples..
Example -
<H2>See below comment tag use</h2>
<!-- <p>Hi there this line is commented</p> -->
<p>You will not see above line in the output screen</p>
Output -
See below comment tag use
You will not see above line in the output screen