Skip to content

Comments

Annotate your code

  • Lesson
  • 1 min read
  • 2 of 7 in this chapter

Like other programming languages, HTML has comments. Text inside comment tags won't show up on the page - it's only there for you and other developers who see your code. Comments can be really useful when organizing code.

This is what the comment tags look like:

HTML
<!-- This is a comment. Whatever I write here won't affect the page. -->