1. Technology

How To Comment Your HTML



Comments help your HTML stay clear

Image courtesy iStock Vectors / Getty Images

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:


  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

©2014 About.com. All rights reserved.