Forum Moderators: open

Message Too Old, No Replies

source code comments post-dominic

How dangerous are any comments now?

         

batdesign

11:12 pm on Jun 11, 2003 (gmt 0)

10+ Year Member



Just wondering if anyone has any thoughts on how the new filters may affect source code comments. I'm of the opinion that google gives comments very little notice, although there are a number of spammy SEOs that use this tactic horrendously. Not sure that it has any effect or if google ranks these pages more on their backlinks.

Anyway...I often use comments, both for reminding myself why I put various divs in certain places and suchforth, and for informational purposes for people viewing source.

Do you think this is becoming more dangerous as google implements more spam filters? Am I asking for trouble even if this is innocent? I think we all know that google isn't perfect...don't want to get culled by an overzealous filter.

ulounge

12:12 am on Jun 12, 2003 (gmt 0)

10+ Year Member



I think your fine.

I use comments when laying out pages so I can easily look at the page structure when veiwing the source.

As long as you don't go overboard I would not see any problem.

Mohamed_E

12:18 am on Jun 12, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



> As long as you don't go overboard I would not see any problem.

I suspect that even if you do go overboard it will not be a problem. I would guess that the google HTML parser correctly discards comments, so that the inside routines that do the ranking never get a chance to see them.

pageoneresults

12:38 am on Jun 12, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



<!-- -->

Anything that appears between those comments tags is not given relevance by today's major SE. A couple of years ago there was advice to utilize the <!-- Comments Tag --> to add a little weight with one SE that was giving relevance to the tag. I've always felt that it was a myth and believe it or not, followed the rest of the crowd and tried it out. At that time I was still green and can't say that it helped or hindered, it was just part of the routine.

Comment tags are markup. They are typically used by developers to provide remarks and/or instructions relative to a block of code. They are also used by various WYSIWYG editing programs as a means to execute program specific code like FP's webbot code or DW's template code.

I kind of rank it up there with the robots revisit tag. ;)

3.2.4 Comments [w3.org]

[edited by: pageoneresults at 12:41 am (utc) on June 12, 2003]

vincevincevince

12:41 am on Jun 12, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Post deleted following pageoneresults' edit.