HTML Comments
An HTML comment lets you leave notes in your code that the browser ignores. Comments start with <!-- and end with -->.
Comments are useful for explaining what a section does, or for temporarily hiding HTML without deleting it.
<!-- This is a comment -->
<p>This text is visible.</p>
<!-- <p>This line is hidden.</p> -->
Comments never appear on the page, but anyone can read them in the page source, so do not store secrets there.
Try it yourself
Loading editor…