SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When you add the noindex class to a div, is all content below it excluded from search crawls? For example, if I had the code below:

<div class="noindex">
   Some Data
   <div> will this be indexed</div>

Will the second div be indexed?

share|improve this question
It should not be indexed. However I'm waiting for someone to try this ;-) – Dennis G Mar 27 '12 at 15:40

Accord to this blog entry on msdn blogs, the nested div will not be excluded in SharePoint Search, but also states that it might change.
So my rule is:
- if you don't want it searched then give it the noindex class.
- if you want it searched then place it outside the noindex div.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.