typescriptz
How-To Guide 2026-11-20

How to Use data-nosnippet for Google, Bing & AI Overviews

Want to stop search engines from quoting your cookie banner, pricing disclaimers, or paywalled box without hiding your whole page? Here is how data-nosnippet works.

How to Use data-nosnippet for Google, Bing & AI Overviews
Supported HTML tags
div, span, section
Bing support added
Oct 2025
Tags silently ignored
p, article, li
Whole-page block risk
nosnippet / :0

The #1 Mistake: Putting data-nosnippet on the Wrong HTML Tag

Both Google and Bing (which added official support in October 2025) only honor data-nosnippet on three tags: <div>, <span>, and <section>. If you put it on a <p>, <li>, or <article> tag, search engines silently ignore it and quote the text anyway.

Markup ExampleWorks in Google & Bing?Best Use Case
<div data-nosnippet>...</div>YesHide cookie banners, sidebars, or subscriber boxes
<span data-nosnippet>...</span>YesHide inline prices, timestamps, or labels inside a paragraph
<section data-nosnippet>...</section>YesHide an entire legal disclaimer or footer block
<p data-nosnippet>...</p>No (Ignored!)Wrap the paragraph inside a <div data-nosnippet> instead

Cite This Study

Typescriptz (2026). "How to Use data-nosnippet for Google, Bing & AI Overviews: Supported Tags & Rules." https://typescriptz.com/blog/how-to-use-data-nosnippet-for-google-and-ai/
<a href="https://typescriptz.com/blog/how-to-use-data-nosnippet-for-google-and-ai/">How to Use data-nosnippet for Google, Bing & AI Overviews — Typescriptz</a>

Common Questions

Does data-nosnippet stop Google from ranking my page?
No. Your page can still rank normally — data-nosnippet only stops that specific wrapped section from appearing in search previews.
What is the difference between nosnippet and data-nosnippet?
Page-wide nosnippet hides every word of your page from snippets and AI Overviews. data-nosnippet hides only the small section you wrap.