Comments inserted in HTML code.

Q4. How are comments inserted in an HTML code? Explain with example.

Ans. Comments are written inside the opening(<!) and closing tags(–>) . Any content written as a comment is not displayed by the Web browser.

For example:






<!—   This line will be displayed as comments.   –>

Hello World.






Leave a Reply

Your email address will not be published. Required fields are marked *

%d bloggers like this: