Tell Google Not To Index Certain Parts Of Page

Posted By Weston Ganger

<p>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>
<pre><code class='language-markup'>
<p>This part and all previous will be indexed</p>
<p>This part will NOT be indexed</p>
<p>This part and rest of the page will be indexed</p>

<p>The all parameter can be changed to any one of the following</p>
<li>index - will not be indexed</li>
<li>anchor - any links will not be associated with the target page</li>
<li>snippet - will not be used to create snippets in search results</li>
<li>all - index, anchor, and snippet</li>

Article Topic:Software Development - HTML / CSS

Date:August 20, 2014