Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Will a search engine see content that has "display:none"?

Status
Not open for further replies.

Mike Lewis

Programmer
Jan 10, 2003
17,485
9
38
Scotland
www.ml-consult.co.uk
I have a created page that includes code I downloaded from DynamicDrive. In brief, the aim is to create a tabbed dialogue.

To simplify, this is how it works:

- The contents of the page is divided between a number of DIVs, like so:
Code:
<div class="tabcontent">
Hello World
</div>

- In an external stylesheet, each of the DIVs has this rule:
Code:
.tabcontent
{
  display:none;
}

- Whe the user clicks on a link in the page, some JaveScript code is run which makes one of the DIVs visible.

My question is: Will a search engine see the contents of the DIVs?

I appreciate that a search engine can't execute the JavaScript. But will it look in the CSS file, see the "display:none", and therefore assume the content is invisible?

Thanks for any advice.

Mike


__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro tips, advice, training, consultancy
Custom software for your business
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top