Comments

Comments can be used to annotate your script and to disable segments of code. Use them liberally. They are particularly helpful if you expect more than one person to participate in scripting or debugging.

Comments begin with:

     <!--

and end with:

     -->

For example:

     <!-- this is where the user is asked for their email address  -->

or

     <!--<tag1>
          <tag2>xyz</tag2>
     </tag1>-->

In the second case, the code within the comment will not be executed.

Note that two hyphens in a row (–) may ONLY be used to denote comments.

Advertisements
%d bloggers like this: