Short answer: Yes, content in tabs and accordions can be indexed and rank, as long as it is in the page's HTML when it loads. Google's spam policies say tabbed and accordion content does not violate its rules, and its mobile-first indexing guidance even suggests accordions and tabs as a way to save space on phones. The real risk is content that is only loaded from the server when a user clicks: Google says it does not click, swipe or type, so that content may never be seen. Test with URL Inspection in Search Console, and keep important content in the initial HTML so AI crawlers can read it too.

What Google's documentation says

Three Google pages cover hidden content directly.

  • Spam policies. Google's spam policies define hidden text abuse as placing content on a page solely to manipulate search engines and not to be easily viewable by visitors, with examples such as white text on a white background or text positioned off-screen with CSS. The same section lists design elements that do not violate its policies: accordion or tabbed content that toggles between hiding and showing, sliders, tooltips, and text only accessible to screen readers.
  • Mobile-first indexing. Google's mobile-first indexing best practices say the mobile site should contain the same content as the desktop site, that you can use a different design on mobile, and that instead of removing content you can consider moving it into accordions or tabs. The same page says Google will not load content that requires user interactions such as swiping, clicking or typing.
  • Lazy loading. Google's lazy-loading guidance explains that Google Search does not interact with your page, so content must load without relying on user actions such as scrolling or clicking.

Put together: hiding content is fine; requiring a click to load it is not. Because Google indexes the mobile version of your pages, whatever your mobile page contains, in any tab or accordion, is what counts. Our mobile-first indexing audit covers content parity in more depth.

The one distinction that matters: in the HTML or loaded on click

From the outside, every tab looks the same. Under the hood, there are several ways to build one, and they behave very differently for crawlers.

How the hidden content is builtIs it in the rendered HTML?Risk for Google
Text in the HTML, hidden with CSS until clickedYesLow
Native <details> and <summary> elementsYesLow
Text added to the page by JavaScript on page load, then hiddenUsually, after renderingLow to moderate; depends on rendering working
Text fetched from the server only when the tab is clickedNoHigh; Google does not click
Text inside an image, PDF or embedded widgetNot as page textHigh for that content
Content behind a login or formNoNot indexable

Many page builders and theme widgets use the first or third method, which is fine. Custom-built tabs, review widgets, pricing calculators and "load more" buttons are where the fourth method shows up. You cannot tell by looking; you have to test.

How to test whether Google sees your hidden content

  1. Pick a sentence from inside the closed tab or accordion. Choose something distinctive, such as a specific price or a unique phrase.
  2. Open URL Inspection in Search Console for that page and run a live test.
  3. View the tested page's HTML and search for your sentence. If it is there, Google's rendering sees it.
  4. Check the screenshot to confirm the page rendered properly and nothing important failed to load.
  5. Compare with the raw source. In your browser, view the page source (not the inspector) and search for the same sentence. If it is in the raw source, it is available even to crawlers that do not run JavaScript.
  6. Check indexing later. Once the page is indexed, search Google for the exact sentence in quotes. This is a rough check, since not every sentence will surface, but it can confirm inclusion.

If the sentence appears in neither the rendered HTML nor the source, the content is loaded on interaction and Google is very likely not indexing it. For broader JavaScript issues, see JavaScript rendering SEO checks.

When hidden content is fine, and when it crosses the line

Fine

  • FAQ answers in accordions on a service page.
  • Tabs for "Residential" and "Commercial" versions of the same service.
  • A "Read more" toggle on a long about page.
  • Collapsed service area lists on mobile.
  • Visually hidden labels for screen readers, such as text on an icon-only button.

Risky or against the rules

  • Hidden keyword blocks. A collapsed "Areas we serve" accordion containing 200 town names and keyword variations that no user would read is the modern version of white text on a white background. The test is intent: is it there for people, or only for search engines?
  • Content that is never revealable. Text hidden with CSS that no button or interaction ever shows to users.
  • Cloaking. Google defines cloaking as presenting different content to users and search engines with the intent to manipulate rankings, such as inserting text only when the visitor is a search engine. Serving Googlebot an expanded version of a page that users never get is the risk to avoid.
  • Mismatched schema. Structured data describing questions, reviews or prices that are not on the page in any form.

What to put in tabs and accordions, and what to keep visible

Even when hidden content is indexed, users may never open it. Decide placement based on what people need to see before they act.

ContentKeep visibleFine to collapse
What the service is and where you offer itYesNo
Phone number and booking buttonYesNo
Price ranges or price factorsYes, at least a summaryDetailed breakdowns
ReviewsA few highlightsThe full list
FAQ answersThe questionsThe answers
Process stepsA short overviewDetail for each step
Service area listMain townsThe full list on mobile
Warranty and legal termsA one-line summaryFull terms

A useful rule for local service pages: if a customer would need the information to decide whether to call you, it should be visible without a click. Collapsing is for depth, not for the basics.

A word on FAQ markup: since August 2023, Google has said FAQ rich results are shown only for well-known, authoritative government and health websites. Accordion FAQs are still worth having for readers; just do not build them expecting the expandable result in Google. Our FAQ page design guide covers the UX side.

AI crawlers and JavaScript tabs

Google documents that Googlebot renders JavaScript, which is why script-built tabs usually work for Google. Many other crawlers, including those used by AI assistants, do not publish whether or how fully they execute JavaScript. Some may read only the raw HTML the server sends.

That has a practical consequence. Content that Google sees after rendering may be invisible to a crawler that does not render. If your prices, service details or FAQ answers only exist after a script runs, an AI assistant summarizing your business could miss them or describe you incompletely.

The safe pattern for any crawler:

  • Put the text in the server-delivered HTML, then use CSS or a small script only to show and hide it.
  • Avoid fetching tab content on click. If performance requires it, consider whether that content really belongs on this page.
  • Do not put key facts only in images, PDFs or third-party widgets.

To see how AI assistants currently describe your business, try the AI Visibility Checker. If you are deciding whether to allow AI crawlers at all, see should you block AI crawlers.

Accessibility: accordions that work for people and machines

Accessible accordions and crawlable accordions tend to be the same thing: real text in the HTML, controlled by real buttons. The simplest option is the native HTML disclosure element, which browsers make keyboard accessible by default:

<details>
  <summary>How much does drain cleaning cost?</summary>
  <p>Most standard drain cleaning visits in our area fall in a
  set price range; main sewer lines cost more. We quote before
  starting work.</p>
</details>

If you build a custom accordion, follow these rules:

  • Use a <button> for the toggle, not a clickable <div>, so it works with a keyboard and is announced as a button.
  • Set aria-expanded to true or false as the panel opens and closes, and connect the button to its panel with aria-controls.
  • Keep the panel content in the HTML and toggle visibility, rather than inserting text on click.
  • Make the toggle text meaningful. "How much does drain cleaning cost?" is better than "Click here" or a plus icon with no label.
  • Do not trap focus or auto-collapse panels while someone is reading.

For tabs, the same principles apply: buttons with clear labels, the selected state announced, and all panel content present in the page. Our guide to web accessibility and SEO covers where the two overlap.

Common implementations to check on local sites

  • Page builder accordions and tabs (common on WordPress themes): usually output text in the HTML, but some lazy-load panels for speed. Test one page.
  • Website builder accordion blocks on Wix, Squarespace and similar platforms: test the same way; do not assume.
  • Review widgets that show three reviews and load the rest on "See more": the extra reviews are often fetched on click and may not be indexed. That is acceptable if you do not rely on them for content, but do not count on them as on-page text.
  • Pricing tables in tabs ("Basic", "Standard", "Premium"): check that every tab's prices are in the HTML, since price details are exactly what customers and AI assistants look for. See whether to show prices on your website.
  • Infinite scroll and "load more" galleries: Google's lazy-loading guidance recommends methods that load content as it enters the viewport rather than on a click. Give important projects their own linked pages too.
  • Mobile menus that hide service links: links inside a collapsed menu still work for Google if they are in the HTML; make sure the mobile menu contains the same key links as desktop.

Hidden content checklist

  • Every tab, accordion and read-more panel has its text in the rendered HTML (checked with URL Inspection).
  • Key facts (services, area, phone, price summary) are visible without a click.
  • Important content is also in the raw page source, for crawlers that do not render JavaScript.
  • No collapsed blocks exist only to hold keywords or long lists of towns.
  • Mobile pages contain the same content as desktop, collapsed or not.
  • Toggles are real buttons with meaningful labels and correct aria-expanded states.
  • Structured data matches content that is on the page.
  • Boilerplate you do not want quoted, such as legal text, can be wrapped in data-nosnippet.

Run the free Website SEO Audit to catch other on-page issues while you are checking.

Frequently asked questions

Does Google index content hidden in tabs or accordions?

Yes, when the content is in the page's HTML and simply hidden with CSS or a toggle. Google's spam policies list accordion and tabbed content as design elements that do not violate its rules, and its mobile-first guidance suggests using them to save space. Content that is only fetched from the server when someone clicks is different, because Google says it does not load content that needs user interaction.

Is content in accordions given less weight than visible content?

Google's current documentation does not say hidden content is weighted less. Its mobile-first indexing guidance recommends moving content into accordions or tabs rather than removing it, which would make little sense if that content were discounted. Older SEO advice warned about reduced weight, but it predates mobile-first indexing. Put the most important information where users see it first anyway, because that serves readers best.

Can text inside an accordion appear in a Google snippet or AI Overview?

Google has not documented any rule that excludes accordion content from snippets or AI features, and content that is in the indexed HTML is eligible like other page content. Whether a passage is chosen depends on the search. To keep a specific section out of snippets, Google offers the data-nosnippet attribute.

Are read more buttons bad for SEO?

Not if the full text is already in the HTML and the button only reveals it. They become a problem when clicking the button fetches the rest of the text from the server, because Googlebot does not click. Check by viewing the rendered HTML in Search Console's URL Inspection tool and searching for a sentence from the hidden part.

Should I add FAQ schema to my accordion FAQs?

Since August 2023, Google has said FAQ rich results are only shown for well-known, authoritative government and health websites, so most local businesses will not get the expandable FAQ display in results. The FAQ content itself is still useful to readers and can still be indexed. If you add the markup, it must match the visible questions and answers.

Is hiding text for screen readers considered cloaking?

No. Google's spam policies list text that is only accessible to screen readers, and intended to improve their experience, as acceptable. Cloaking means showing search engines different content from users in order to manipulate rankings. Visually hidden labels for buttons and icons are an accessibility practice, not a trick.

Check what Google can see on your pages

Run a free website audit, or book a free call and we will check whether your tabs, accordions and sliders are visible to Google and AI crawlers.

Book Free Audit →