data-nosnippet

The data-nosnippet HTML attribute is applied to individual elements within a page — such as a span, div, or section — to instruct Google not to use the text within that element as part of the search snippet for the page. Unlike the nosnippet meta robots directive, which suppresses the entire page snippet, data-nosnippet operates at the element level, giving publishers surgical control over which portions of a page’s text Google can excerpt. This is useful for legal disclaimers, boilerplate footer text, navigation labels, or promotional copy that would degrade the quality of the auto-generated snippet if included. Google announced support for data-nosnippet in September 2019 as part of the same update that introduced max-snippet, max-image-preview, and max-video-preview. The attribute is inherited by child elements; adding it to a container element prevents snippet use of all text within that container.