Why do we insert comments in an HTML document even though they are not displayed on a Web page.

Q9. Why do we insert comments in an HTML document even though they are not displayed on a Web page?

Ans. Comments are meant for the developers and programmers to understand code. They are not displayed in the Web browser.

Leave a Reply

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