Comment Line in HTML


When we give the lines in the document which is used to explain our code then we can use comment so that this lines will be ignored by the browser.This lines will not be visible for the user.But they are visible for the programmer which can help the programmer when he/she edit the source code at a later date.

<HTML>

<Head>

<Title>Testing Comments</Title>

</Head>

<Body>

This is not a comment.

<!–This is not a comment–>

</Body>

</HTML>

Output:

 

Comments are closed.