Skip to content
regensbot
DEV-IDX-07May7 of 13 in IDX

Use data-nosnippet on a span, div or section to keep one detail out of snippets

Level
May

Optional: worth doing where it fits.

Documentation

Documented

At least one cited Google document states or supports it.

Covered

Automatic

Decided from one URL.

Why it matters

data-nosnippet keeps a passage such as a phone number or a member price out of snippets while the page can still be found for it. It works on only a handful of elements, may be read before and after rendering, and broken HTML can widen it: an unclosed element marked data-nosnippet can hide the rest of the page from snippets.

How to meet it

Wrap the passage in <span data-nosnippet>, <div data-nosnippet> or <section data-nosnippet> in the server HTML, never add or remove the attribute with JavaScript, and validate the HTML of templates that use it so every element is closed.

How to test it

An HTML validator (W3C Nu or html-validate in CI) reports no unclosed elements on templates that use data-nosnippet; after recrawl, the page's snippet avoids the marked text.

How Regensbot covers it

AutomaticNeedsOne URL

Decided from one URL.

An audit reads the response, the headers, the HTML, robots.txt, the sitemaps and the structured data, and the finding shows the evidence it saw.

How verdicts workWhat you connect

Sources

Google documents01

  1. 01Robots meta tag, data-nosnippet, and X-Robots-Tag specificationsGoogle Search Central (opens in a new tab)

Claims in the knowledge base06

  1. D2-C077ConfirmedControlling indexingSaid on stage
  2. D2-C078ConfirmedControlling indexingSaid on stage
  3. D2-C079SourceControlling indexingGoogle's documentation
  4. D2-C076ConsistentControlling indexingSaid on stage
  5. D2-C080ConsistentControlling indexingSaid on stage
  6. D2-C081n/aControlling indexingThe author's interpretation

Claim IDs refer to the Search Central Live 2026 knowledge base. The knowledge base (opens in a new tab)

Confirmed
Google's documentation states the same thing.
Consistent
Google's documentation supports it without stating it.
Source
The claim is the cited document itself.
n/a
Nothing to verify: a quotation, framing, opinion or analysis.

Audit

Check it on your site.

One audit checks a URL against all 138 requirements and returns one finding for each, with its source. One URL decides 66; for each of the others, the finding says which source to connect.