Computer Science, asked by snehujj, 1 year ago

why do we insert comments in an HTML documents even though they are not displayed on a web pages?​

Answers

Answered by Harsh007gzp
14

So that while observing the code of the program the observer can understand the purpose for which any tag, attribute is added if comment had been insertef

Answered by rachitsainionline
10

What is comments ?

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.

Your answer :

Comments are not displayed in the browsers. You can use comments to explain your code, which can help you when you edit the source code at a later date.

Similar questions