Key takeaways
- Google’s spam policies define hidden text by intent: content placed on a page “solely to manipulate search engines” that visitors cannot easily see.
- The same policy says accordions, tabs, sliders, tooltips and screen-reader text are not hidden text.
- The real risk with tabs is different. Google says it won’t load content that needs a click, swipe or typing, so that content must be in the page already.
- Showing search engines different content from what people see is cloaking, which is a separate spam policy.
- To keep a passage out of snippets without hiding it from people, use the data-nosnippet attribute.
Hidden content SEO questions reach me in two forms. One owner has been told the FAQ accordion on every page is “hidden text” and will be penalised. Another has a page that ranks for nothing because the useful copy loads only after a click. Google treats these very differently, and sorting them apart is a normal part of my technical SEO audits.
Much hidden content is a mobile design choice, so read my guide to mobile-first indexing and keeping your mobile site complete too. This article covers what Google counts as hidden text, what it accepts and how to check a page.
I first published this article in 2025 and have rewritten it, removing claims about how Google detects hidden content that I could not trace to any Google source.
What Google actually calls hidden text
Google’s spam policies describe “hidden text or link abuse” as “the practice of placing content on a page in a way solely to manipulate search engines.” The key word is “solely”. The policy is about intent, not a CSS property.
The examples Google gives are the old tricks most people already recognise:
- “Using white text on a white background”
- “Hiding text behind an image”
- “Using CSS to position text off-screen”
- “Setting the font size or opacity to 0”
- “Hiding a link by only linking one small character (for example, a hyphen in the middle of a paragraph)”
Each one serves a crawler and not the visitor. The same policies say Google enforces them through automated systems and, “as needed, human review that can result in a manual action,” and that “Sites that violate our policies may rank lower in results or not appear in results at all.”
In audits I still find these patterns, usually left by an old theme or a previous supplier, such as a block of town names pushed off screen. The owner often has no idea it is there.
Hidden content Google accepts
The same spam policy page lists what is not hidden text. It names “Accordion or tabbed content that toggle between hiding and showing additional content”, a “Slideshow or slider that cycles between several images or text paragraphs”, a “Tooltip or similar text that displays additional content when users interact with over an element”, and “Text that’s only accessible to screen readers and is intended to improve the experience for those using screen readers.”
Google goes further in its guide to mobile-first indexing. It says “Google uses the mobile version of a site’s content, crawled with the smartphone agent, for indexing and ranking,” asks you to “Make sure that your mobile site contains the same content as your desktop site,” and suggests that instead of removing content you “consider moving content into accordions or tabs to save space.”
So an FAQ accordion or product tabs are normal web design. What Google’s documentation does not say is whether text in a closed tab counts exactly as much as text that is open on load. My rule is to keep the sentence that answers the main question visible and put the detail in tabs.
Where accepted patterns turn into a problem
An accordion stops being fine when the panel holds text no visitor would want to open, such as a long list of town names, repeated keyword variations or links that exist only for crawlers. Then it is just a hiding place, and the intent test applies.
Content that loads only after a click
This is the hidden content problem I see far more often than spam. A tab looks normal, but its text is not in the page until someone clicks and a script fetches it. To Google, that content may not exist.
The mobile-first indexing guide is direct about it: “Google won’t load content that requires user interactions (for example, swiping, clicking, or typing) to load.” Google’s page on fixing lazy-loaded content adds that “Google Search does not interact with your page” and that lazy-loaded content should load “whenever it is visible in the viewport.”
The difference is easy to test:
- Tab or accordion text that is in the HTML and only toggled with CSS or a script is present when Google renders the page.
- Tab text that a script requests from the server after a click is missing when Google renders the page.
JavaScript rendering and the line to cloaking
Google’s JavaScript SEO basics explains that it processes JavaScript pages in three phases, crawling, rendering and indexing, and that “Googlebot queues all pages with a 200 HTTP status code for rendering.” The same page says “server-side or pre-rendering is still a great idea,” and recommends that you “use the Rich Results Test or the URL Inspection Tool and look at the rendered HTML” to confirm Google can see your content.
The spam policies say “Cloaking refers to the practice of presenting different content to users and search engines” “with the intent to manipulate search rankings and mislead users.” One of Google’s examples is inserting text or keywords into a page only when the user agent requesting it is a search engine.
Tabs that show visitors and Googlebot the same content are not cloaking. A server rule that adds keywords only for crawlers is. A page that renders for visitors but fails for the crawler, through a blocked script or an error, is not cloaking either, but Google still indexes a thinner page than people see. I go through those rendering failures in my article on rendering problems on JavaScript sites.
data-nosnippet hides text from snippets, not from people
Sometimes you want the reverse: the text stays for visitors, but Google should not quote it in results, such as a disclaimer or a price that changes. CSS hiding is the wrong tool for that.
Google’s robots meta tag documentation says you “can designate textual parts of an HTML page not to be used as a snippet” with the data-nosnippet attribute “on span, div, and section elements.” The page-level nosnippet rule is broader and also keeps the page’s content from being “a direct input for AI Overviews and AI Mode.”
Two details from that page matter in practice:
- The HTML “must be valid HTML and all appropriate tags must be closed,” because an unclosed div keeps everything after it out of snippets.
- Because “rendering is not guaranteed,” Google tells you not to add or remove data-nosnippet on existing elements through JavaScript. Put it in the HTML from the start.
The documentation presents data-nosnippet as a snippet control, not a way to keep text out of the index.
A hidden content SEO check, step by step
I compare three views of a page: what a visitor sees, what the raw HTML contains, and what Google renders. Google’s Manual Actions report help page describes the same idea for its hidden text action: “Use the URL Inspection tool in Search Console to check for content that’s visible to our crawler.”
- Open the page and select all the text (Ctrl+A or Cmd+A). Google suggests this to reveal text that is the same, or a similar, colour as the background.
- Inspect elements that are set to display none, visibility hidden, zero opacity, zero font size or positioned far off screen, and ask what each one is for.
- Run URL Inspection in Search Console, view the rendered HTML, and check that tab and accordion text is there.
- Look for lists or paragraphs of repeated words without context, and check title tags and alt text for strings of repeated words, as the help page suggests.
- Fix templates, not single pages.
| What you find | How Google’s documentation treats it | What I do |
|---|---|---|
| Text in the background colour or off screen | Hidden text under the spam policies | Remove it, or show it properly if it is useful |
| FAQ accordion or product tabs in the HTML | Not hidden text | Keep it; key answer visible |
| Tab text fetched only on click | Google won’t load content that needs a click | Put the text in the page on load |
| Extra keywords served only to crawlers | Cloaking | Remove the rule; serve one version |
| Passage you want out of snippets | data-nosnippet on span, div or section | Add the attribute in the HTML |
If you would be uncomfortable showing a visitor the text you are hiding, it does not belong on the page.
If you already have a hidden text manual action
The help page describes this manual action as “Some of your pages may contain hidden text or keyword stuffing, techniques that are not allowed by Google’s spam policies.” Its recommended fix is to “Remove or re-style any hidden text so that it’s equally discoverable by search engine crawlers and by human users,” and to remove keyword stuffing as well.
Only when the problem is fixed across all affected pages should you select Request Review. Google says a good request explains the issue, the steps you took and the outcome, and that reviews can take days or weeks. If the action is broader than hidden text, or you are not sure what triggered it, that is the point where Google penalty recovery work starts with a proper diagnosis rather than a guess.
FAQ
Is content in tabs and accordions bad for SEO?
No, not as such. Google’s spam policies say accordion or tabbed content is not hidden text, and its mobile-first indexing guide suggests tabs and accordions to save space. Make sure the content is in the HTML when the page loads, not fetched after a click.
Does Google penalise display none?
Not as such. Menus, tabs and modals use it all the time. Text hidden with CSS only so that search engines see it is what the spam policies describe as hidden text.
How do I see what Google sees on my page?
Use the URL Inspection tool in Search Console, or the Rich Results Test, and look at the rendered HTML. If tab text is missing there, Google is not seeing it.