Comment tags look like this < !-- Insert comments here -- > and were originally used by webmasters to place text only visible when you viewed the source of the coding.
There were two main reasons for this, one was to relay information to other webmasters regarding the coding of the page such as copyright information, where to find original scripting or to locate certain items of interest. The second reason (and the reason that I use them) is for editing purposes. Placing a comment tag before and/or after coding helps you find it amongst the maze of your source code so that you donít spend hours searching. They also remind you of coded variables that you may have forgotten the meaning of.
For some unknown reason, search engines suddenly felt that comment tags may allow them to make searching more relevant. This might be true for webmaster tutorials where many of the relevant keywords are held in the comment tags but for the rest of the web this it is a bit useless. None-the-less, some major search engines still use comment tags as part of their ranking algorithm and as you canít get banned for using comment tags (which I would consider hidden text) there is no harm in using them Ö wisely.
As usual, dishonest webmasters have meant that comment tags are no longer given the weight they used to do. As soon as Altavista admitted to using comment tags in their algorithm, spam tags suddenly shot through the roof. Below are bad examples of comment tag use and, if caught, will most likely result in you being pushed down in ranking:
Although placing a comment tag prior to the < html > and < head > tags may not actually be seen as spam, they will also not be considered as part of the page relevance. Any coding prior the < html > tag is considered to be server related and therefore not generally specific to a page. So although this may not be considered spam, it won't make any difference to your ranking.
As shown, placement can be between either the < head > tags or the < body > tags as long as they look relevant. As comment tags only marginally increase ranking I would only create comment tags that include your main keyphrases, don't include every keyword/phrase in comment tags as this will dilute the overall effect.
As a rule of thumb I would only place a maximum of five comment tags on a page as big as this one, if you don't have a lot of coding for any given page I would reduce this to three - you don't want comment tags to stand out. Try and keep the keyword density of your comment tags above 50% whilst still making them look relevant to the page and never include more than two keyphrases in a comment tag as this will push 'over-optimization' filters.
Got all that? Great! If in doubt, just avoid the whole issue and stick to optimizing everything else first. Comment tags should be more of an afterthought in optimization rather than the first thing you try.
Written by Michael Beverley
Director, Internet Heaven
If you have your own mailing list and would like to use this material to send your clients, please state this using the email form above. If you do not you will be in violation of copyright infringement which we will take action upon. We're nice people and generally will be flattered that you want to use our articles and we've never said no yet. Don't cheat the system, let's all keep above board.