Html css

Tell Google Not To Index Certain Parts Of Page

Posted by Weston Ganger on August 20, 2014

If you have sections of your page that you dont want google to index, like a comments section that commonly strays off topic, you can use the following HTML comments that the Google bots will listen to:


<p>This part and all previous will be indexed</p>
<!--googleoff:all-->
<p>This part will NOT be indexed</p>
<!--googleon:all-->
<p>This part and rest of the page will be indexed</p>

The all parameter can be changed to any one of the following

  • index - will not be indexed
  • anchor - any links will not be associated with the target page
  • snippet - will not be used to create snippets in search results
  • all - index, anchor, and snippet

Posted in HTML / CSS and Tagged with seo google index indexing 


Need help on your next project or application?

I specialize in Ruby-on-Rails, AngularJS, Javascript, Bootstrap, and Hybrid Mobile Apps with Cordova & Ionic.

Contact Me

Recommended Posts