MENU NEXT

ADDING COMMENTS

Adding comments about your website in the code can help you remember what the special tricks are, what your plans are for the whole page, or to provide extra information about the website code such as copyright.

A comment uses a stand alone tag .
The structure of the comment tag is this : <!—comment goes here --> .

Comments do not appear on the webpage, you must look at the source code to find them.

A little note : Often in computer and math the exclamation point is used to mean no or not. An exception is factorial math where something like 3! really stands for 3 * 2* 1 and 0! is the same as 1. Also, other computer programming languages use two dashes " - - " or two slashes "//" to mean a comment. If you can understand one language (even a little bit), it will help you to learn another. J

 

Here is an example of our page with a comment about the structure of a link tag:

<HTML>
<HEAD>
<TITLE>MY VERY BASIC PLAIN JANE BORING WEBPAGE</TITLE>
</HEAD>
<body bgcolor="#ffffff" text="#000000" link="#0000ff" vlink="#ff0000" alink="#00ff00">
the good stuff goes here
<P>
<!-- remember to leave a space between the a and href in the link tag - ->
<a href="
http://cybermoms.cyberbeach.net ">Cybermoms</a>
</BODY>
</HTML>

Notice that the comment does not show up on the webpage.

Screenshot showing that comments do not appear on webpage