Glossary · nosnippet and data-nosnippet
nosnippet stops text snippets and video previews for a page and keeps its content out of AI Overviews and AI Mode as a direct input; the data-nosnippet attribute hides only a marked part of the page.
Google’s documentation 1
Documented in
Google's robots meta tag specification says data-nosnippet may be extracted both before and after rendering, so the attribute should not be added to or removed from existing elements with JavaScript.
Google Search Central · Day 2 · Controlling indexing
Said at the event 4
Slide and stage claims that name it, the ones Google’s documentation does not cover first.
Consistent with docs 2
John Mueller said data-nosnippet is rarely needed but lets a site keep a specific piece of text, such as a business phone number, out of the snippet, so the page can still be found for it while searchers have to visit the page to see it.
John Mueller · Day 2 · Controlling indexing
John Mueller said valid HTML is technically not a ranking factor but does matter for controls such as data-nosnippet.
John Mueller · Day 2 · Controlling indexing
Confirmed by docs 2
The data-nosnippet attribute can be used on only a handful of HTML elements.
John Mueller · Day 2 · Controlling indexing
Broken HTML can widen data-nosnippet: if a div marked data-nosnippet is not closed properly, the rest of the page can be blocked from the snippet as well.
John Mueller · Day 2 · Controlling indexing
Press and analysis 2
To hide one detail, such as a phone number, a price or a direct answer, instead of the whole snippet, wrap it in data-nosnippet on a span, div or section in the server HTML and validate the HTML so that an unclosed element cannot hide the rest of the page from snippets.
Ibrahim Anjro · Day 2 · Controlling indexing
Treat nosnippet, data-nosnippet and max-snippet as AI visibility settings too: Google lists them as the controls for content in AI features, and if AI answers are built from index snippets, as Google said on stage, a blocked or shortened snippet leaves AI Overviews and AI Mode less to use.
Ibrahim Anjro · Day 2 · How does the index look like?
Built on these claims 3
Kit items about data-nosnippet: their own words name it, or several of the claims they rest on do.
Developer requirements 2
Also inglossary term nosnippet and data-nosnippet
Connected things 9
Relations
- Affects Snippets
2 claims, 2 documented
John Mueller said data-nosnippet is rarely needed but lets a site keep a specific piece of text, such as a business phone number, out of the snippet, so the page can still be found for it while searchers have to visit the page to see it.
Broken HTML can widen data-nosnippet: if a div marked data-nosnippet is not closed properly, the rest of the page can be blocked from the snippet as well.
Most often named with it
Things named in the same claim, with the number of claims they share.
Topics that feature it