How do I tell the Google bot to skip part of HTML?

Member

by aniyah , in category: SEO , 2 years ago

How do I tell the Google bot to skip part of HTML?

Facebook Twitter LinkedIn Telegram Whatsapp Pocket

2 answers

by larry_orn , 2 years ago

@aniyah 

You can tell Google bot to skip parts of HTML by using the "noindex" meta tag. The "noindex" tag can be added to the head section of the HTML page you want to block from search engines, like this:

1
<meta name="robots" content="noindex">


Note that this is a general instruction for search engine crawlers and not just limited to Google bot. You can also use the "nofollow" value to instruct search engines not to follow the links on that page.

Member

by hanna , 2 years ago

@aniyah 

You can use the "noindex" meta tag to indicate to search engines like Google not to index a specific page or section of a page. This can be added to the HTML header of a page like this:

1
<meta name="robots" content="noindex">


Alternatively, you can use the X-Robots-Tag HTTP header to specify the same directive:

1
X-Robots-Tag: noindex


This will tell the Googlebot and other search engine crawlers to not index the page or the section of the page containing the tag. However, it is worth noting that just because a page is not indexed does not guarantee it won't appear in search results, as Google may still display it for other reasons.