HTML Tutorial

The language for building web pages.

HTML Comments

HTML Comments

HTML comments are not displayed in the browser, but they can help document your HTML source code. Comments start with <!-- and end with -->.

Uses of Comments:

  • Explain code to other developers
  • Hide code temporarily during debugging
  • Mark sections of the page

Try It Yourself

Edit the code below and click Run to see the result live.

Source Code
Result
Topics