English

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

Advertisements
Advertisements

Question

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

Very Short Answer
Advertisements

Solution

Comments are inserted to add notes, explanations, or reminders in the HTML code. They help in understanding and maintaining the code.

shaalaa.com
  Is there an error in this question or solution?
Chapter 3: HTML- I: Basic HTML Elements - Unsolved Examination Questions [Page 139]

APPEARS IN

Sumita Arora Computer Applications [English] Class 10
Chapter 3 HTML- I: Basic HTML Elements
Unsolved Examination Questions | Q 7. | Page 139
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×