The next command that we will discuss is a short command. This command allows one to put a comment on their web page. This is particularly useful if you want to leave notes for yourself on your web page that you don’t want the world to see, unless they view your source. I have not seen many web pages do this but comments can allow you to use HTML as you would a C++ program. When writing a C++ program a person will always leave a note as to what there next command was supposed to do. This is just in case someone else is working on the program when they find an error in that coding or you find an error in the coding and can’t remember what that code was supposed to do. Most of the time I have seen comments used to insert keywords into search engines. Some search engines simply display or search part of your page and if you put relevant keywords in a comment, the search engine will see this because it views the source, your page is much more likely to be found by someone that is looking for information.
In order to insert a comment in your page you need to use a command to start the commenting and a command to end it. The command that is used to starting the commenting is an angle bracket “<“ followed by an exclamation point “!” followed by two dashes “--”. Then you would enter your comments. Then you would enter your comment. Your comment could contain anything you want it to, it could possible coding if that code does not work or it could have information that you only what people who view your source to see. After you are done entering comments you would tell the browser you are done by entering two dashes “--” followed by an angle bracket “>”. The final source code for a comment would look like this:
<A HREF=”http://computing.net>Justin’s</A> <!-- A link to Justin Weber’s Computing Center -->