Computer Science, asked by harmansandhu6428, 1 year ago

What are HTML comments ? explain ​

Answers

Answered by krdeepanshu
3

Answer:

This element is used to add a comment to an HTML document. An HTML comment begins with <!–– and the comment closes with ––>. HTML comments are visible to anyone that views the page source code, but are not rendered when the HTML document is rendered by a browser.

Read more: https://html.com/tags/comment-tag/#ixzz5siLYVgi5

Answered by Anonymous
2

Answer:

Comments are added to the code of HTML to provide a short description of the code. It is not visible on the web page but is kept for development purposes as it plays a very important role for the web developer.

To add comment in HTML document we use,

<!-- Anything written inside this angular bracket will not be shown on web page >

Similar questions