Does Googlebot indexes html comments

Discussion in 'Web Design and Development' started by Pedro Estarque, Apr 7, 2008.

  1. Pedro Estarque macrumors regular

    Joined:
    Dec 5, 2002
    #1
    I Googled everywhere but couldn't find a good answer, my guess is that it doesn't. I did a site in flash and copied all the text in flash to html comments. Google has indexed the site and all the html is in the cache, but I can't find anything that's in the comments when I search for it.

    What is the best solution to this ( please don't answer "don't use flash", that's not an alternative ) ? Would using a DIV tag set to hidden be OK ? I heard it's not allowed by Google.

    I don't want to hack Googlebot, I just want my content to be properly indexed.

    Thanks
     
  2. angelwatt Moderator emeritus

    angelwatt

    Joined:
    Aug 16, 2005
    Location:
    USA
    #2
    You can try adding the text to the description meta tag (<meta name="description" content="text here" />). Not completely sure if Google makes great use of that though, but think it does to some extent.

    You could put the text in a div and absolutely position that text off-screen (position:absolute; top: -9999;).

    I don't make flash sites so don't really deal with this issue, but do feel Google ignores the comment tags text as it should.

    An article of interest: http://www.netmechanic.com/news/vol6/promo_no12.htm
     
  3. Pedro Estarque thread starter macrumors regular

    Joined:
    Dec 5, 2002
    #3
    thanks angelwatt, AFAIK the description content META tag is useful for the snippets
    And the META contents keywords is completely ignored. I think I'll try the DIV trick, but is that allowed or not ?
    Thanks
     

Share This Page