CBSE Class 10 Computer Applications Question 112 of 176

HTML I — Basic HTML Elements — Question 11

Back to all questions
11
Question

Question 7

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

Answer

Comments have the following utility in an HTML document:

  1. Comments can be used to explain code. The explanation can be for oneself or for other people.
  2. Comments can be used to leave notes, a reminder to come back to a section or prioritize it during the next redesign.