1.1 Robots & directives (HTTP + HTML)HighVerified

data-nosnippet wrapping primary content

What it is

data-nosnippet is a useful surgical tool, but I sometimes find it wrapped around the main answer instead of a small caveat. That hides exactly the text I want Google to quote. The data-nosnippet attribute marks elements as excluded from snippets.

Why does data-nosnippet wrapping primary content matter for AI search?

If it wraps primary content, that content cannot be shown in snippets or used as a direct input to AI features.

How do you fix it?

Remove data-nosnippet from primary content; reserve it for genuinely private spans.

How do you find it on your site?

  1. Search the rendered HTML for the data-nosnippet attribute.
  2. Check what content sits inside those wrappers.
  3. Confirm the primary answer is not inside a data-nosnippet element.
  4. Move the attribute onto only the small fragments you truly want excluded.

Which ranking and citation factors does it touch?

If the answer text is excluded from snippets, the page is far less likely to be selected for snippets or AI grounding, even when it is the best answer.

What is the impact?

High for AI citability of the wrapped content. Direct.

What is the evidence?

data-nosnippet excludes wrapped content from snippets (and thus AI input). Google Search Central, Robots Meta Tags Specifications

Frequently asked questions about data-nosnippet wrapping primary content

What does "data-nosnippet wrapping primary content" mean?

The data-nosnippet attribute marks elements as excluded from snippets.

How do you fix data-nosnippet wrapping primary content?

Remove data-nosnippet from primary content; reserve it for genuinely private spans.