homepage Welcome to WebmasterWorld Guest from 54.198.130.203
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Subscribe to WebmasterWorld
Home / Forums Index / Google / Google SEO News and Discussion
Forum Library, Charter, Moderators: Robert Charlton & aakk9999 & brotherhood of lan & goodroi

Google SEO News and Discussion Forum

    
Does Google index show/hide text?
DarkNova




msg:3482988
 11:07 pm on Oct 20, 2007 (gmt 0)

I have a page on which I want to put a section of text and links on that are hidden by default but appear when the user clicks a link to show the hidden area. I'd like to do this by wrapping it in something like <div style="display: none;">....</div> and having some javascript change the style to display: block when the user clicks the "show" link. Will Googlebot see this hidden text and index the links within it?

Is there a recommended way of setting the style in the div? Does it matter to Google whether I set the style right in the div or have a CSS style declared in the file or should it be in an external stylesheet? Or will Google index it no matter which way it's done? Thanks.

 

tedster




msg:3483067
 12:04 am on Oct 21, 2007 (gmt 0)

This is the kind of coding that creates many dhtml menus. There's no problem with it when obvious user action makes the content visible, and the content in the initially hidden divs does get indexed.

DarkNova




msg:3483071
 12:08 am on Oct 21, 2007 (gmt 0)

OK, thanks...I just wanted to make sure because I've seen many people speculating on forums that you could get penalized for having text within hidden divs but I too have seen other sites use it for navigational menus. Obviously I'm not trying to spam -- I'm trying to create a useful functionality.

tedster




msg:3483102
 1:19 am on Oct 21, 2007 (gmt 0)

I've been using this show/hide div approach for 4 years on one site - it offers extended product information for visitors who are interested. It's been working beautifully there, both for the visitor and for the search engines.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Google / Google SEO News and Discussion
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved