0Pricing
HTML for Kids · Lesson

HTML Comments

Use comments to organize your code.

1

HTML Comments

Welcome to the next lesson! Today, we’ll learn about HTML comments. Comments are notes in your code that are not visible on the web page but help you and others understand the code.

HTML Comments — illustration 1

2

What Are Comments?

Comments in HTML are special lines of text that the browser ignores when displaying the page. They are used to:

  • Explain the purpose of your code.
  • Temporarily disable code during debugging.
  • Add reminders or notes for yourself or other developers.

Comments make your code more readable and maintainable.

All lessons in this course

  1. Writing Clean Code
  2. Accessibility Basics
  3. Validating Your HTML
  4. HTML Comments
← Back to HTML for Kids