Site SEO AI Auditpor Internet Solutions

Tabs and Accordions: Does Google Count Hidden Content?

29 de setembro de 20268 min de leituraSEO on-page
Tabs and Accordions: Does Google Count Hidden Content?

Short answer: yes, Google indexes and uses content inside tabs, accordions and “read more” toggles, as long as that content is present in the page’s HTML when it loads. Google has said that with mobile-first indexing, content collapsed for usability is treated like visible content. What does not work is content fetched only after a click, because crawlers do not click. Keep collapsed content in the HTML, show the most important answer openly, and never use hidden text to stuff keywords.

Why this question keeps coming up

Tabs and accordions are everywhere: product pages with “Description”, “Specifications” and “Reviews” tabs, FAQ sections that expand one question at a time, service pages with collapsible detail. They save space, especially on phones, and they make long pages easier to scan.

For years, SEO advice warned that search engines gave less weight to text that was not visible on load. That advice came from a time when desktop pages had plenty of room and hiding text was often a spam tactic. On small screens, collapsing content became a normal design pattern, and Google adjusted. Since the move to mobile-first indexing, Google has repeatedly said that content hidden in tabs or accordions for usability reasons is indexed and weighted normally. You can read the general rules on how Google renders pages in its JavaScript SEO documentation.

The old warning survives in audits and forum threads, which is why site owners still ask. The real risk today is not collapsing content; it is building collapsible content in a way that keeps it out of the HTML entirely.

Collapsed vs not loaded: the difference that matters

From a crawler’s point of view, there are two very different ways to build a tab or accordion:

Many sites use the second approach without realising it, for example review widgets that load reviews on tab click, or “load more” buttons that fetch extra product details. If that content matters for search, move it into the initial HTML or render it on page load. Our guide to how search engines render JavaScript pages explains the rendering process in more detail.

How Google and other systems treat hidden content

A quick summary of what is known, without overstating it:

System Collapsed content in the HTML Content loaded on click
Google Search Indexed and, under mobile-first indexing, treated like visible content Not seen, because Googlebot does not click
Bing Generally indexed when present in the HTML Not seen
AI crawlers Seen if present in the raw HTML; many do not run JavaScript Not seen
Snippets and AI answers Can be quoted from collapsed sections Cannot be quoted

The row about AI crawlers deserves attention. Many AI crawlers read only the raw HTML the server sends. If your accordion content is injected by JavaScript after load, even without a click, it may be invisible to them. Our article on why AI crawlers miss JavaScript content covers how to check.

When hidden content is a problem

Collapsing content is acceptable because it serves visitors. Hiding content to mislead search engines is not, and Google’s spam policies still cover hidden text and links. Warning signs include:

The test is simple: would a real visitor who opens the panel find it useful? If yes, collapsing it is a design choice. If the panel only exists for search engines, it is a liability.

What to show openly and what to collapse

Even though collapsed content is indexed, visible content still does more work for visitors, and visitors decide whether the page answers their question. A few guidelines:

  1. Show the main answer. The core information the page is about, such as what a service includes or the key product benefits, should be visible without clicking.
  2. Collapse supporting detail. Specifications, shipping terms, long FAQs, technical notes and legal text are good candidates.
  3. Do not collapse your only heading structure. Headings inside accordions should still form a logical outline, with H2s and H3s in the right order.
  4. Open the relevant panel when linked. If you link to a specific FAQ answer, open that panel automatically so the visitor lands on visible text.
  5. Avoid tabs for content people compare. If visitors need to see two sections side by side, tabs make them click back and forth.

Our guide to what the first screen of a page should show helps decide what belongs in the visible part.

Common page types and how to handle them

The same principles play out differently depending on the page:

In each case, ask what the typical visitor came for and make sure that part does not require a click.

How to build tabs and accordions the right way

Good implementation serves search engines, AI crawlers and people using assistive technology at the same time:

How to check whether crawlers see your collapsed content

You can verify this in a few minutes per template:

  1. Open the page, right-click and choose “View page source”. Search for a sentence from inside a collapsed panel. If it is there, the raw HTML contains it.
  2. If it is not in the source, check the rendered HTML with the URL Inspection tool in Search Console, using “View crawled page”. If it appears there, Google sees it after rendering, but AI crawlers that skip JavaScript may not.
  3. Search Google for an exact sentence from the collapsed panel in quotes, combined with site:yourdomain.com. A result showing the page confirms it has been indexed, though absence is not proof of a problem.
  4. Repeat for each template type, such as product pages, FAQs and service pages, because each may use a different component.

How an audit helps

Site SEO AI Audit checks every page for content that needs JavaScript to appear, together with thin content, headings and structured data, so templates that hide important text from crawlers stand out across the whole site. On WordPress, each issue comes with fix steps in wp-admin. Run a free audit to see whether any of your templates depend on JavaScript for key content.

Related reading

The bottom line

Tabs and accordions are safe for SEO when the content inside them is in the HTML from the start and exists to help visitors. Keep the main answer visible, collapse supporting detail, build components with accessible markup, and make sure nothing important loads only after a click. Hidden text meant only for search engines remains a risk.

FAQ

Does Google index content inside accordions?

Yes, if the content is in the HTML or rendered when the page loads. Google has said that under mobile-first indexing, content collapsed for usability is treated like visible content.

Is text in tabs worth less for rankings?

Google has said it is not devalued when it is there for usability. Still, the main answer to the page’s topic should be visible, because visitors judge the page by what they see first.

Can collapsed content appear in featured snippets or AI answers?

Yes. Text inside collapsed sections can be quoted as long as crawlers can read it in the HTML. Content that only loads after a click cannot be quoted because it is never seen.

Is a “read more” link bad for SEO?

Not if the full text is already in the HTML and the link only expands it. It becomes a problem when clicking fetches new content from the server or takes the visitor to a different URL with the real content.

Are details and summary elements good for SEO?

They are a solid choice. The content is always in the HTML, they work without JavaScript, and browsers make them accessible by default.

#Content quality#JavaScript SEO#On-page SEO#Technical SEO
Verifique o seu próprio site — grátis.Todos os problemas de SEO do seu site — e exatamente como corrigir.
Comece grátis
Internet Solutions

Mais da nossa equipe

Feitas pela Internet Solutions. Experimente nossos outros produtos — cada um economiza seu tempo de um jeito diferente.

internet-solutions.net ↗
Site SEO AI Audit
Visão geral de privacidade

Este site usa cookies para oferecer a melhor experiência de usuário possível. As informações dos cookies ficam armazenadas no seu navegador e servem para, por exemplo, reconhecer você quando volta ao nosso site e ajudar nossa equipe a entender quais seções do site você acha mais interessantes e úteis.