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 strongm 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,505
Scotland
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