Welcome to WebmasterWorld Guest from 54.198.113.206

Forum Moderators: Robert Charlton & aakk9999 & andy langton & goodroi

Message Too Old, No Replies

Markup in Comment tags for SEO

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

Junior Member

5+ Year Member

joined:Oct 16, 2007
posts:53
votes: 0


What happens if one uses markup in comment tags is it concidered spam?
12:53 am on Dec 10, 2007 (gmt 0)

Senior Member

WebmasterWorld Senior Member tedster is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:May 26, 2000
posts:37301
votes: 0


As far as I know, the algo doesn't use anything inside a comment tag to score a page.
12:57 am on Dec 10, 2007 (gmt 0)

New User

5+ Year Member

joined:July 16, 2007
posts: 28
votes: 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.

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

Junior Member

5+ Year Member

joined:Oct 16, 2007
posts:53
votes: 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?
10:27 pm on Dec 11, 2007 (gmt 0)

Full Member

10+ Year Member

joined:May 18, 2002
posts:210
votes: 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.

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

Junior Member

10+ Year Member

joined:Jan 16, 2004
posts:176
votes: 0


If you were a search engine, what would you do?
4:50 pm on Dec 12, 2007 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Feb 25, 2003
posts: 2527
votes: 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.

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

New User

5+ Year Member

joined:July 16, 2007
posts: 28
votes: 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>
8:01 pm on Dec 12, 2007 (gmt 0)

Senior Member

WebmasterWorld Senior Member tedster is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:May 26, 2000
posts:37301
votes: 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.
8:04 pm on Dec 12, 2007 (gmt 0)

New User

5+ Year Member

joined:Nov 12, 2007
posts:39
votes: 0


you typically put H1 tags in your comments?
8:32 pm on Dec 12, 2007 (gmt 0)

Senior Member

WebmasterWorld Senior Member tedster is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:May 26, 2000
posts:37301
votes: 0


Only if I'm commenting out mark-up that may need to be put back.
7:11 pm on Dec 16, 2007 (gmt 0)

Moderator This Forum from US 

WebmasterWorld Administrator robert_charlton is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Nov 11, 2000
posts:11481
votes: 208


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.

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

New User

5+ Year Member

joined:Feb 29, 2008
posts: 4
votes: 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

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

Senior Member from US 

WebmasterWorld Senior Member pageoneresults is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Apr 27, 2001
posts: 12169
votes: 55


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.

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

New User

5+ Year Member

joined:Feb 29, 2008
posts: 4
votes: 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.