Comment

Category:HTML Tags

Comment

Comments in HTML begin with <!-- and ends with -->. A comment is a piece of code which is ignored by any web browser.

Examples

Using comments as reminders3

<h1> All About Me</h1>
<!--Remember to add more content here.-->

Syntax

<!-- Your comment here-->

Tips

  • Any content placed within the <!-- and --> tags will be completely ignored by the browser.
  • It is a good practice to add comments into your HTML code to help you and others understand your code and increase code readability.

Additional Information

For more information, see http://www.w3schools.com/tags/tag_comment.asp

Found a bug in the documentation? Let us know at documentation@code.org