why do we insert comments in an HTML documents even though they are not displayed on a web pages?
Answers
Answered by
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
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
Computer Science,
7 months ago
Math,
7 months ago
English,
7 months ago
Math,
1 year ago
Math,
1 year ago