homepage Welcome to WebmasterWorld Guest from 54.83.133.189
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Pubcon Website
Visit PubCon.com
Home / Forums Index / Google / Google SEO News and Discussion
Forum Library, Charter, Moderators: Robert Charlton & aakk9999 & brotherhood of lan & goodroi

Google SEO News and Discussion Forum

    
Markup in Comment tags for SEO
FlexAjaxSEO




msg:3523668
 9:06 pm on Dec 9, 2007 (gmt 0)

What happens if one uses markup in comment tags is it concidered spam?

 

tedster




msg:3523787
 12:53 am on Dec 10, 2007 (gmt 0)

As far as I know, the algo doesn't use anything inside a comment tag to score a page.

Jasp




msg:3523792
 12:57 am on Dec 10, 2007 (gmt 0)

I'm no expert, but I would see no reason for anything between comment tags to be considered for a spam penalty.

Comments are (or should be) ignored by browser and robots alike.

But that's just my uneducated opinion.

FlexAjaxSEO




msg:3525434
 10:19 pm on Dec 11, 2007 (gmt 0)

I have seen over time that engines do read the comment tags I place in CAPITAL letters ... so now the idea comes to write: <!-- <h1> THE KEYWORD </h1> -->
--- what do you think of this?

mbennie




msg:3525442
 10:27 pm on Dec 11, 2007 (gmt 0)

Haven't seen anyone do it with success for about 5 years - I don't think spamming comment tags would do anything to help rankings these days - but it would probably generate spam reports from competitors if they discovered it.

Zero upside - lots of downside. I would avoid it.

Haecceity




msg:3525591
 1:34 am on Dec 12, 2007 (gmt 0)

If you were a search engine, what would you do?

internetheaven




msg:3525966
 4:50 pm on Dec 12, 2007 (gmt 0)

The thing to consider as to whether something "can" penalise your site is - 'is there a valid use for this techinique?' Most black hat SEO techniques are in grey areas because there are also legitimate uses for some stuff such as cloaking. But this:

<!-- <h1> THE KEYWORD </h1> -->

There is no possible legitimate use for, it can only be spamming.

Jasp




msg:3526148
 7:55 pm on Dec 12, 2007 (gmt 0)

There is no possible legitimate use for, it can only be spamming.

I often comment out parts of my pages when I change things, in case I want to change it back.

It would not be too surprising to find something like this on a page:

<!-- <h1> VAGUE WIDGETS </h1> -->
<!-- <h1> BETTER WIDGETS </h1> -->
<h1> BEST WIDGETS </h1>

tedster




msg:3526152
 8:01 pm on Dec 12, 2007 (gmt 0)

Right - that is pretty common. Just one of many reasons why today's search engines don't use commented out sections for indexing. In the early "text match" days of search engines, it often worked.

piznac




msg:3526154
 8:04 pm on Dec 12, 2007 (gmt 0)

you typically put H1 tags in your comments?

tedster




msg:3526187
 8:32 pm on Dec 12, 2007 (gmt 0)

Only if I'm commenting out mark-up that may need to be put back.

Robert Charlton




msg:3529031
 7:11 pm on Dec 16, 2007 (gmt 0)

Over the years, I've seen this subject come up periodically. I've checked by searching for unique text strings that appear within the comment tags, and I've never seen an engine return one of these strings.

I have, though, seen Matt Cutts, when reviewing a spammy site, refer to a keyword-laden comment tag he finds as an obvious attempt at spam. Usually, these examples are so far over the top that they're funny.

My assumption is the content inside comment tags will not help you, but, if it's spammy enough, it might hurt you in a manual review.

As for Hx elements and even sections of a page, I also frequently comment them out when I'm making changes. Eventually, I like to go back and clean these up, but that's got nothing to do with search engines.

Apharcyde




msg:3631655
 5:51 pm on Apr 21, 2008 (gmt 0)

In regard to SEO, comment tags also add to page weight. Keeping your file size down by only using comments to demarcate code blocks concisely would be best. IE. Marking the begining and end of a header, footer etc. If thats even necessary.

I could be splitting hairs, but using comment tags to deactivate deprecated or unused code may possibly reduce the potential SERP relevancy. Irrelevant source code prevents important content from being as topmost as possible, and will contribute to file size/load time.

All things to consider when in it to win it with SEO.

Cheers
RUSSO

pageoneresults




msg:3631687
 6:44 pm on Apr 21, 2008 (gmt 0)

HTML Comments are treated as markup...

3 On SGML and HTML - 3.2.4 Comments
[w3.org...]

I like it when people try to get fancy with their comments. You know, stuff like this...

<!-- My HTML Comment -- Let's add some separators -- This should help with the visual -->

Do you see what's wrong with the above? ;)

We use HTML Comments all the time. Along with CSS Comments, ASP Comments, JS Comments, etc. Without them, our development teams would have questions.

Apharcyde




msg:3631860
 11:42 pm on Apr 21, 2008 (gmt 0)

The double hyphens between comment open tags and close tags cause an invalidation. But, is there a specific reason other than just don't do it?

Your right pageoneresults, about the developers needing references in the source code to prevent confusion.

Thanks for the W3C reference too.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Google / Google SEO News and Discussion
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
© Webmaster World 1996-2014 all rights reserved