Does Googlebot indexes html comments

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

  1. Pedro Estarque macrumors regular

    Dec 5, 2002
    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.

  2. angelwatt Moderator emeritus


    Aug 16, 2005
    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:
  3. Pedro Estarque thread starter macrumors regular

    Dec 5, 2002
    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 ?

Share This Page