HTML Java

HTML Comments


HTML Comments

  • The comment tag is used to insert comments in the HTML code.
  • It is used to help the coder and reader to understand the code.
  • The comment tag is useful during the debugging of codes.

Syntax: <! - - Comments are written here - - >

Note: - Comments are not displayed by the browser, but they help document your HTML source code.

Example

<html>
<body>
  <! -- This is a comment -->
  <p>This is a paragraph.</p>
  <! -- Comments are not displayed in the browser -->
</body>
</html>
Try it »