Hidden Content In Tabs And Accordions: Do Google And AI Read It?

Do Google and AI crawlers read text hidden in tabs and accordions? Google's own wording, what the AI companies leave out, and a count across 27 real pages.

RankControl10 min read
Hidden Content In Tabs And Accordions: Do Google And AI Read It?

When I searched Google on November 4, 2026 for "do ai crawlers read accordion content", the AI Overview said yes, but only if the text is already in the raw HTML when the page loads. It cited blog posts and a video, and none of them had counted anything on real pages, so I did.

On 26 of the 27 pages I tested, the text behind a tab or accordion was already in the HTML the server sent. The trouble sits with a smaller group of pages that build a panel only when you open it. This post covers what Google says, what the AI companies don't, and how to check your own page in two minutes.

Google is the easy half

The hidden-text section of Google's spam policies lists white text on a white background, text pushed off-screen and text set to zero opacity as abuse. It then says other design elements that show and hide content "don't violate our policies", and the first one it names is accordion and tabbed content.

The limit is the click. The mobile-first guide adds that Google won't load content that needs swiping, clicking or typing.

Google pageWhat it saysUpdated
Spam policiesAccordion and tabbed content is allowedAug 28, 2026
Mobile-first indexingDon't lazy-load primary content upon user interactionDec 10, 2025
Lazy-loading guideGoogle Search does not interact with your pageDec 10, 2025
JavaScript SEO basicsA headless Chromium renders the page and runs its JavaScriptMar 4, 2026

Google renders scripts, so text a script adds at load is seen. A panel that waits for a click is not.

No Google page says how much weight collapsed text carries. Gary Illyes was quoted in 2016 saying content hidden for UX should get full weight, but that comes second-hand through Search Engine Roundtable and is ten years old. I wouldn't build on it, and I'd treat whether collapsed text ranks lower as unanswered.

The AI crawlers are the open question

I read the crawler pages from OpenAI, Anthropic and Perplexity on November 4, hoping for a line about JavaScript. All three cover bot names, robots.txt rules and IP lists. None says whether the bot runs scripts, clicks a tab or reads a collapsed panel.

Vercel and MERJ studied crawler traffic in December 2024 and found that none of the major AI crawlers render JavaScript. ChatGPT's and Claude's bots download script files but don't run them. Vercel sells server rendering, and the data is nearly two years old.

In October 2026, Glenn Gabe re-tested by asking five chatbots to read test pages and return the first and last paragraphs. ChatGPT, Claude and Perplexity failed on content built by JavaScript, and Gemini passed every test. That's a prompting test on a handful of pages, not a crawler log. Our post on whether AI bots can crawl your website covers both tests.

Helen Pollitt of Getty Images gave the practical version in Search Engine Journal in January. Content has to be "contained within the DOM on the first load", she wrote, because Googlebot "doesn't have the ability to switch between tabs".

RANKCONTROL

How often does ChatGPT mention your brand?

Most founders have no idea. The answer might surprise you.

Show me my mentions →100 tracked questions · 7 AI models

What 27 real pages showed

I pulled Google's live results for 88 searches on November 4 and 5, aimed at different site types and at FAQ and docs pages, and kept one page per domain. Each page got a plain request, as a crawler that skips scripts would fetch it. Then I opened it in a headless browser, clicked its tabs and accordions, and searched the plain response for the opening words of every panel.

StepNumber
Google searches88
Pages kept, one per domain476
Pages fetched and rendered375
Pages with a tab or accordion72
Pages with a usable widget27
Triggers opened per pageUp to 8
Words taken from each panel12

I wanted 60 pages and got 27, because most results for FAQ-style searches are articles about FAQs, and only 27 of the 72 pages with a tab or accordion had panels long enough to test.

Widget typePagesText in the plain HTML
Native details and summary10All 10 pages
JavaScript accordion, text in the page98 of 9 pages
Page-builder widgets (Elementor, Squarespace)8All 8 pages
All2726 pages, 74 of 77 panels

All but one page had every tested panel in the plain HTML. The exception was an FAQ page whose answers appear in the raw response only inside its FAQPage markup, while a script builds the visible accordion. No tested panel needed a script at load or a click. With 27 pages, the share of pages with click-dependent panels could still be about one in eight, so zero is a floor and not a verdict.

The exceptions turned up in two extra sets I picked by hand before fetching anything, kept out of the main count. Fourteen of the 20 pricing pages had a usable widget, and 3 of those had a panel missing from the plain HTML. A script rewrote one promo accordion's 10,000+ contacts to 5,000+.

Extra setChosenUsableMissing a panel
Pricing pages20143
Documentation pages1351 tab page

One large framework's install page lists four package-manager tabs, but the plain response holds one panel, the default. The yarn and bun commands appear nowhere in it, and opening a tab fires no request for them, so the page's own script builds the panel. The other two docs tab pages were fine.

PageIn the plain HTMLAfter a script or click
Pricing FAQNo answersThree answers on click
Pricing "show limitations" tableNo tableTable built on click
Pricing promo accordion10,000+ contacts5,000+ contacts
Docs install pageOne of four tab panelsAll four, built by script

I expected tabs that fetch their text when you click, and found none in 375 renders.

LimitWhat it means
27 pages, one dayIntervals are wide, so don't rank widget types
Google's top resultsLarger, better-ranked sites, and 21% couldn't be fetched
Detection by markupA custom div with a click handler is invisible to my script
Not measuredGooglebot, AI crawlers, ranking weight, mobile layouts, logged-in pages

Which of your tabs are in trouble

PatternIn the HTML?What to do
Native <details> and <summary>Yes, all 27 panelsKeep it
JavaScript tab or accordion hidden by CSS (display none, height 0)Yes, 24 of 27 panelsKeep it
Page-builder widgetsYes, 23 of 23 panelsKeep it
Component that builds a panel when openedNo, in the pricing and docs setsRender every panel, hidden
Text a script adds at loadOnly after scripts runServer-render it
Answers only in FAQPage markupOnly in script dataPrint them in the page too
Text fetched on clickNone foundPrint it in the page

The pattern behind the exceptions is modern component libraries. Some skip rendering a closed panel entirely, because nobody can see it yet. The page builders and plain details tags in my sample never did.

RANKCONTROL

15 hours a week manually. Or 15 minutes with RankControl.

Track citations, monitor competitors, and fix content gaps across every AI search engine. Automatically.

Text in the HTML still isn't text a crawler keeps

I ran the 74 panels that were in the markup through two common open-source text extractors, trafilatura and Mozilla Readability, as a rough stand-in for what a crawler's reading step might do. I don't know which extractor, if any, a given AI crawler uses, so treat this as a warning and not a measurement of them.

All three extractor settings I tried, including trafilatura set to favor recall, dropped the three panels that used the hidden attribute, and trafilatura's default lost 12 of the 30 closed details panels.

ExtractorAll panels keptClosed details keptHidden attribute keptOrdinary paragraphs kept
trafilatura, default66%18 of 300 of 399%
Mozilla Readability72%21 of 300 of 389%

The ordinary paragraphs are the first few on each page, so read this as a proxy. The cheap fix is to state your key answer in open text as well.

Check your own tabs in two minutes

I call it the sentence test, and it takes two minutes because the panels on a site usually come from one component. You're checking a template, not every page.

Open the page, right-click, and pick view source, not Inspect, which shows the page after scripts ran. Search for a sentence from inside a closed panel, or in a terminal run curl -s yoursite.com/page | grep -c "your sentence".

A count of 1 or more means a crawler that skips scripts can read it, as long as the hit sits in the visible markup and not in script data. A zero sends you to the Network tab, where you open the panel and watch. A request that returns the text means it loads on click, and no request means a script builds it. Our guide to technical SEO for SaaS calls the curl version a cold fetch and uses it for the whole page.

The URL Inspection tool offers a view crawled page option that Google says shows the "raw HTML returned", though many practitioners say the HTML tab shows the rendered page, so confirm with view source. The Rich Results Test says its explorer "uses the rendered source code". Neither proves what a crawler that skips scripts downloaded. Re-check after any theme or plugin update, since a new version can change how a component renders its panels.

What to change

Keep your accordions. If a panel is missing from your source, ask your developer to render every panel into the HTML and hide it with CSS or a details element, and use details when you can. If your component library skips closed panels, check whether it has an option to keep them mounted, or swap in details.

Put the main answer in open text and let the accordion carry the extras. A June r/squarespace thread asked whether everyone was overusing FAQ accordions because of AI tools. The site manager who posted it said every page now ends in a giant FAQ accordion, partly for AI tools, and replies said a long FAQ can mean the main copy is failing visitors.

r/squarespace· u/laurenbuildsbrands· Jun 23, 2026

Is anyone else overusing FAQ accordions because of AI search?

I feel like I've accidentally created a new website design problem for myself. I manage websites for multiple restaurant and hospitality brands, and over the last year I've started adding FAQ sections to a lot of pages because they seem hel...

↑ 14 upvotes15 comments
Via Reddit

Basic facts shouldn't live only in a FAQ. Answers kept only in FAQ markup need printing on the page too, and the markup has to match the visible text, as our post on FAQ rich results covers. And don't hide text with no way for a visitor to open it, because that's the behavior Google's policy goes after.

You can repeat this check after every redesign, or let RankControl publish each article as a native post on your own site through your CMS. The text is then part of the page your site serves. We also test your site every day as each AI crawler, and a blocked crawler shows up in Action Items. Our AI visibility tracking checks seven engines every week.

RANKCONTROL

AI search traffic grew 835% this year. Is your content ready?

RankControl generates 26 content formats optimized for ChatGPT, Claude, and Perplexity. Published on your domain, matched to your brand.

Frequently Asked Questions

Yes, when the text is in the page as it loads. Google lists accordion and tabbed content as allowed in its spam policy, but it won't click a tab to open a panel for you.

No current Google page gives a weight for it either way, so nobody outside Google knows. If a page matters to you, keep the main answer in open text and use the accordion for extra detail.

Often yes, because most of them read the raw HTML and don't run scripts. They can miss a panel that a script builds only when you open it, and the AI companies don't publish how their bots handle it.

Open view-source or run curl, then search for a sentence from inside a closed panel. If you find it, a crawler that skips scripts can read it too.

Not when every answer is in the HTML, which held on all but one of the pages I checked. Say your main points in open text as well, since a long accordion can't carry a page alone.

RANKCONTROL

Ready to rank on Google and get AI citations?

Content that ranks on Google and gets cited by AI search engines. Published on your domain. Citations tracked weekly.

Related Articles

AI Content Score: What These Grades Measure And What They Miss

Nov 28, 2026 · 10 min read

AI Content Score: What These Grades Measure And What They Miss

What an AI content score from Surfer, Clearscope and others measures, plus a test of 190 pages that found no link between a term-coverage score and Google rank.

Ecommerce Category Page SEO: Copy, Filters, And Links That Rank

Nov 23, 2026 · 10 min read

Ecommerce Category Page SEO: Copy, Filters, And Links That Rank

Ecommerce category page SEO from Google's own docs: how much copy to write and where, which filter URLs to index or block, pagination rules and internal links.

Can Google Detect AI Content? What Actually Affects Rankings

Nov 22, 2026 · 9 min read

Can Google Detect AI Content? What Actually Affects Rankings

Can Google detect AI content? Google has never said it can, and its SynthID Detector doesn't read text. What Google judges instead, and what affects rankings.

Content Freshness As A Ranking Factor In Google And ChatGPT

Nov 21, 2026 · 10 min read

Content Freshness As A Ranking Factor In Google And ChatGPT

Content freshness SEO from the source: what Google's own docs say, which searches reward new pages, how ChatGPT differs, and the three dates to check.

Internal Link Structure: How To Organize Links For Google And AI Crawlers

Nov 17, 2026 · 10 min read

Internal Link Structure: How To Organize Links For Google And AI Crawlers

Internal link structure for Google and AI crawlers: page levels, link templates, anchors, faceted navigation, JavaScript risk, orphan pages and a quarterly audit.

How To Build A Content Calendar That Wins Google And AI Answers

Nov 16, 2026 · 10 min read

How To Build A Content Calendar That Wins Google And AI Answers

How to build a content calendar for search: the columns, picking topics from real demand, a pace you can keep, flex and refresh slots, and a sample month.

Content Relevance: How Google And AI Engines Judge A Page

Nov 14, 2026 · 8 min read

Content Relevance: How Google And AI Engines Judge A Page

What content relevance actually means to Google and to AI engines, in their own words: keyword matching, content beyond the keyword, interaction data and passages for Google, and query fan-out for AI Mode and ChatGPT. Plus what we found checking top and tenth-place pages for three searches.

Product Page SEO Content That Works In Google And AI Shopping

Nov 13, 2026 · 9 min read

Product Page SEO Content That Works In Google And AI Shopping

The content side of product page SEO: unique descriptions over manufacturer copy, titles, answers to buyer questions, reviews, images and the product data AI shopping reads, with Google's and OpenAI's own guidance and a check of what nine live product pages actually carry.

What Are Organic Keywords? How To Grow Them With Content

Nov 11, 2026 · 9 min read

What Are Organic Keywords? How To Grow Them With Content

What organic keywords are, why Semrush, Ahrefs and Google Search Console never show the same count for the same site, how to see your real ones for free, how to grow them with new pages and near-miss updates, and why they matter for AI search too.

THE SIGNAL

Insights on AI and Google search strategy. No fluff.

Get the latest on AI citations, Google rankings, and content strategy.

No spam. Unsubscribe anytime.