Comments

HTML Comments

Comments are not displayed by the browser. Use them to explain your code or to temporarily hide part of it.

<!-- Write your comments here -->

Example

Example

Only the visible paragraphs appear; the commented ones are hidden:

<!DOCTYPE html>
<html>
<head>
  <title>Page Title</title>
</head>
<body>

<!-- This is a comment -->
<p>This is a paragraph.</p>

<!--
<p>This paragraph is hidden for now.</p>
-->

<p>This is another paragraph.</p>

</body>
</html>

Result

Note: Comments are still visible in the page source, so never put passwords or private notes in them.