Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    Senior Coder
    Join Date
    May 2006
    Posts
    1,683
    Thanks
    28
    Thanked 4 Times in 4 Posts

    Do comments show up in google search results?

    Hi,

    I am using a form in my webpage that has a comment inside
    it. The comment contains a unique code which I was thinking to use
    as a way of searching for that form on the internet.

    To show you what I mean, here is the site:
    Project Management

    and this is the code that has the comment:

    Code:
    <br><br>
    <!-- // SF-Code Project Management M ##gc87f48yf** // --> 
    <a href="http://www.support-focus.com/check.php?key=SF64929" 
    onclick="NewWindow(this.href,'','860','700','yes','default'); 
    return false" onfocus="this.blur()" >  
    <img src="http://www.support-focus.com/image_load.php?id=SF64929" 
    alt="Support-Focus Membership Click to Verify - Before you Buy" border="0"></a>
    <br><br>
    This code appears on my website as a clickable "seal".

    To make sure that it only gets used once, I put that commentted
    code there.

    But I assumed that Google will find it - maybe it does not see the comments, does anybody know ?

    Thanks.

  • #2
    Senior Coder Rowsdower!'s Avatar
    Join Date
    Oct 2008
    Location
    Some say it's everything.
    Posts
    2,027
    Thanks
    5
    Thanked 397 Times in 390 Posts
    I don't know for sure, but I can't imagine that they would index comments. Their purpose is to index for user-viewable content which would not include HTML comments. If you want to have it indexed you could use that code as the alt text for the image and then also use a title attribute on that image to present the hover text for that seal. To my knowledge alt text would be indexed.
    The object of opening the mind, as of opening the mouth, is to shut it again on something solid. –G.K. Chesterton
    See Mediocrity in its Infancy
    It's usually a good idea to start out with this at the VERY TOP of your CSS: * {border:0;margin:0;padding:0;}
    Seek and you shall find... basically:
    validate your markup | view your page cross-browser/cross-platform | free web tutorials | free hosting

  • #3
    Senior Coder
    Join Date
    May 2006
    Posts
    1,683
    Thanks
    28
    Thanked 4 Times in 4 Posts
    What you say makes a lot of sense.

    And thank you for the suggestion about the image alt text - good idea

  • #4
    Senior Coder
    Join Date
    May 2006
    Posts
    1,683
    Thanks
    28
    Thanked 4 Times in 4 Posts
    OK,

    I have done what you suggested.

    The page now looks like this:

    Project Management

    I have left the comment in but added a code into both
    the alt and the title tags here:

    Code:
    <!-- // SF-Code Project Management M ##gc87f48yf** // --> 
    <a href="http://www.support-focus.com/check.php?key=SF64929" 
    onclick="NewWindow(this.href,'','860','700','yes','default'); 
    return false" onfocus="this.blur()" >  
    <img src="http://www.support-focus.com/image_load.php?id=SF64929" 
    alt="Support-Focus Membership SF64929 Click to Verify - Before you Buy" 
    title="Support-Focus Membership SF64929 Click to Verify - Before you Buy"
    border="0" >
    </a><br><br>
    As you can see the SF64929 is in both and that should be a
    unique piece of data to search with

    Thanks for the idea

  • #5
    Senior Coder Rowsdower!'s Avatar
    Join Date
    Oct 2008
    Location
    Some say it's everything.
    Posts
    2,027
    Thanks
    5
    Thanked 397 Times in 390 Posts
    Hey, if you need strange ideas I'm your man!
    The object of opening the mind, as of opening the mouth, is to shut it again on something solid. –G.K. Chesterton
    See Mediocrity in its Infancy
    It's usually a good idea to start out with this at the VERY TOP of your CSS: * {border:0;margin:0;padding:0;}
    Seek and you shall find... basically:
    validate your markup | view your page cross-browser/cross-platform | free web tutorials | free hosting


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •