Computer Applications

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

HTML Intro

5 Likes

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.

Answered By

1 Like


Related Questions