Data-Nosnippet

What Is Data-Nosnippet?

The data-nosnippet attribute prevents specific parts of a webpage from being displayed in Google search snippets.

This HTML attribute is used to protect sensitive information or irrelevant content from appearing in search results pages (SERPs), ensuring better control over snippet content.

This ensures only relevant content is shown as snippets in the Google search results – Including for featured snippets.

Here’s how it works:

Whatever content is “wrapped” between the data-nosnippet tag won’t be displayed as a snippet in the organic search results.

Googlebot recognises the tag when it crawls your page and stops that content from being shown.

learn how to increase your search traffic in 28 days

Why Is The Data-Nosnippet Attribute Important?

The data-nosnippet attribute is important because it gives you control over what Google displays in the SERPs.

Let me explain:

Google now automatically rewrites most website meta-descriptions.

meta description example

They write them using snippets of content on the page. This is because they personalise the descriptions for each user to maximise the click-thru rate.

Here’s the problem:

Sometimes they display content you don’t want shown in the SERPs.

That’s where the data-nosnippet attribute comes in. You control which content is displayed in your meta-description

Want us to rank your site?

What Is The Nosnippet Rule?

The Nosnippet rule is a directive for search engines like Google.

It tells them which snippets of content they are allowed to display in the SERPs.

Unlike the meta robots nosnippet tag that applies to entire pages, the data-nosnippet attribute applies only to content.

This lets you easily control which parts of your content are excluded from search snippets.

That means you can get very targeted with the types of content Google shows in the search results.

How To Use The Data-Nosnippet Attribute

To use the data-nosnippet attribute, add a data-nosnippet tag around the text you don’t want to be displayed. This is done in the HTML version of your page.

It’s easier than you think:

First, identify the text you don’t want displayed as a search snippet. Now, add the data-nosnippet attribute around the text.

I should look something like this:

<span data-nosnippet>your text here</span>

That’s it!

Remember:

Use the data-nosnippet attribute selectively. Only apply it to elements containing information you don’t want publicly displayed in the search results.

It can have a significant impact on your website visibility in the SERPs.

increase your organic search traffic in 28 days
Link Building

Link building you will be proud of.

Learn more
SEO Agency

We take full control of your traffic.

Learn more
Learn Portal

Free SEO tutorials to increase your traffic.

Learn more

Increase Your Search Traffic
In Just 28 Days…

CLICK HERE TO GET STARTED I’ll show you how step by step

Featured In: