1.

Why are comment included in HTML document? With the help of an example, explain how they are included in HTML code?

Answer»

Comments are inserted in HTML code with the help of <!—….—> tag. To insert the text as a comment, type the text between <!– and —> tag, then that text will be ignored by the browser and invisible for the user.

e.g.

<HTML><BODY>

<!--This is a comment.-->

This is a book

</BODY><HTML>



Discussion

No Comment Found