Adding comments in HTML

How to add comments in HTML?

HTML comments are placed in between <!-- ... -->tags. So, any content placed with-in <!-- ... --> tags will be treated as a comment and will be completely ignored by the browser.

<head>  <!-- Comment Goes Here -->
  <title>This is document title</title>
</head> <!-- Comment Goes Here -->

   <p>Document content goes here.....</p>

1 Like

Thanks, I got my doubt cleared