Forum Moderators: Robert Charlton & goodroi
<!-- <h1> THE KEYWORD </h1> -->
There is no possible legitimate use for, it can only be spamming.
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>
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.
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
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.