</> Code Corner

HTML · HTML Tutorial · Lesson 11

HTML Comments

Leave notes in your code that the browser ignores.

HTML comments are not displayed in the browser, but they help document your source code.

Example

<!-- This is a comment -->
<p>This is a paragraph.</p>
<!-- Remember to add more information here -->

Hide Content

Comments can hide content — useful while debugging.

Keep reading “HTML Comments”

Sign up to read the full lesson (2 more parts), try every example in the live editor, and take the 5-question quiz.

Chat with us 👋