1. Computing

Discuss in my forum

How To Comment Your HTML

By

When you add comments to your HTML, you make it easier for another developer to maintain the page, or for yourself in six months.
Difficulty: Easy
Time Required: 1 minute

Here's How:

  1. Add the first part of the HTML comment tag:
    <!--
  2. Write whatever comment you would like
  3. Close the comment tag:
    -->

Tips:

  1. Comments can be multiple lines
  2. Use comments to document your page
  3. Comments can document content, table rows or columns, track changes or whatever you would like
  4. A good way to use comments is to document the author of the page, and include copyright information
  1. About.com
  2. Computing
  3. Web Design / HTML

©2014 About.com. All rights reserved.