Menu

1 / 5

data-nosnippet: decide what AI Overviews can quote

DEV Community: html·richi.codes·4 days ago
#YdQa8SEV
#devto2#devto#dev#google#nosnippet
Reading 0:00
15s threshold

This note has an interactive demo. Try it in the original

There's no special markup that gets you into Google's AI Overviews, but there is markup that keeps parts of your page out of them. The same snippet controls that have shaped the grey text under a search result for years ( nosnippet , max-snippet and the data-nosnippet attribute) now also decide how much of your page Google may use as direct input for AI Overviews and AI Mode. It's one of the few levers that is documented, works per page or per paragraph, and doesn't require blocking a crawler.

The demo above is a small page with a robots meta tag you can change. Tap a block to give it data-nosnippet , move the max-snippet slider, and watch the counter, the search result and the "AI input" box shrink.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.