---
title: "Hidden content (tabs and accordions)"
description: "Text folded into tabs or accordions can be indexed by Google if it loads with the page. Text fetched only on click is never seen."
url: https://ursy.com/wiki/hidden-content-tabs-and-accordions/
updated: 2026-11-25T01:18:40+00:00
publisher: URSY (https://ursy.com/)
cite: Name URSY and link https://ursy.com/wiki/hidden-content-tabs-and-accordions/
---

# Hidden content (tabs and accordions)

> Text folded into tabs or accordions can be indexed by Google if it loads with the page. Text fetched only on click is never seen.

**Hidden content (tabs and accordions) is text that sits in the page’s HTML but stays folded away until a visitor clicks or taps to open it, such as a product’s delivery tab or a list of questions that expand one at a time.** [Google](https://ursy.com/wiki/google/) says this design pattern is allowed. The real risks are content that only loads after a click, and content written for robots rather than people.

## What is hidden content? {#what-is-hidden-content}

On a phone, space is tight. A product page might have 5 blocks: description, size guide, care, delivery and reviews. Rather than one long scroll, the designer folds 4 of them into tabs or an accordion. The words are still in the [HTML](https://ursy.com/wiki/html/). The browser just does not draw them until the visitor asks. This is not the same as [spamdexing](https://ursy.com/wiki/spamdexing/) tricks such as white words on a white page, or [cloaking](https://ursy.com/wiki/cloaking/), which shows robots a different page from people.

There are 3 common ways to build it:

- **Native HTML.**  The `details` and `summary` elements make a box that opens and closes with no script at all.
- **[CSS](https://ursy.com/wiki/css/) and a little script.**  All panels are in the page; a click swaps which one is shown.
- **Load on click.**  The panel is empty until a click asks the server for the words. This is the risky one.

## Does Google index text inside tabs and accordions? {#does-google-index-text-inside-tabs-and-accordions}

Yes, if the text is in the page when it loads. Google’s [spam policies](https://developers.google.com/search/docs/essentials/spam-policies) list “accordion or tabbed content that toggle between hiding and showing additional content” as something that does not break its rules. Sliders, tooltips and text meant only for screen readers are on the same safe list.

Google’s [mobile-first indexing guide](https://developers.google.com/search/docs/crawling-indexing/mobile/mobile-sites-mobile-first-indexing) goes further. Since Google reads the phone version of your page first (see [mobile-first indexing](https://ursy.com/wiki/mobile-first-indexing/)), it suggests moving content into accordions or tabs to save space, instead of deleting it from the mobile layout.

## When does hidden content cause problems? {#when-does-hidden-content-cause-problems}

The same Google guide warns: “Google won’t load content that requires user interactions (for example, swiping, clicking, or typing) to load.” So the build method matters more than the look.

| How the panel is built | Words in the first HTML? | Can Google read it? |
| --- | --- | --- |
| `details` and `summary` | Yes | Yes |
| All panels in the page, CSS hides the closed ones | Yes | Yes |
| Panel filled by a script on page load | After [rendering](https://ursy.com/wiki/rendering/) | Usually, once rendered |
| Panel fetched from the server only on click | No | No, Google does not click |

The last row is a common cause of pages that look rich to people but thin to [search engines](https://ursy.com/wiki/search-engine/). It is a [JavaScript SEO](https://ursy.com/wiki/javascript-seo/) issue, not a design one.

## Why does it matter for AI answers? {#why-does-it-matter-for-ai-answers}

[AI assistants](https://ursy.com/wiki/ai-assistant/) quote passages. Google’s guide, [AI features and your website](https://developers.google.com/search/docs/appearance/ai-features), asks site owners to make sure important content is available in textual form. Text in a folded panel is still text, so it can be read and quoted. If an [AI crawler](https://ursy.com/wiki/ai-crawler/) reads only the raw HTML and does not run scripts, a panel that needs a click or a script to fill is empty to it. If you want an answer quoted in [AI Overviews](https://ursy.com/wiki/ai-overview/) or [ChatGPT](https://ursy.com/wiki/chatgpt/), the safest home for it is plain HTML that loads with the page. Clear [content chunking](https://ursy.com/wiki/content-chunking/), one question per panel, also helps a machine lift the right passage.

## How does the native HTML version work? {#how-does-the-native-html-version-work}

MDN’s guide to the [details element](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/details) explains it: the `summary` is the label, and the rest stays hidden until the box is opened. Add the `open` attribute to start it open. Give several boxes the same `name` and only 1 can be open at a time, which makes an accordion with no script.

```
<details name="faq">
  <summary>How long does delivery take?</summary>
  <p>UK orders arrive in 2 to 3 working days.</p>
</details>
```

For custom panels, MDN’s page on the [hidden attribute](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Global_attributes/hidden) describes `hidden="until-found"`. The panel stays shut, but the browser’s Find in page and links to a fragment can still reach it, and the browser opens it when they do. MDN also notes that plain `hidden` hides an element from all presentations, screen readers included.

## Common mistakes {#common-mistakes}

- **Fetching panels on click.**  If the words arrive only after a tap, search engines and most AI [bots](https://ursy.com/wiki/bot-web-robot/) never see them.
- **Hiding the main answer.**  Put the core answer in the open part of the page. Fold away the extras: specs, delivery, small print.
- **Marking up closed panels as FAQ schema with different words.**  Google’s [structured data guidelines](https://developers.google.com/search/docs/appearance/structured-data/sd-policies) say not to mark up content that is not visible to readers. Keep the [FAQ schema](https://ursy.com/wiki/faq-schema/) word for word the same as the panel text.
- **Different content on mobile and desktop.**  Google asks for the same content on both. Folding is fine; deleting is not.
- **Stuffing panels.**  A tab full of repeated phrases is still [keyword stuffing](https://ursy.com/wiki/keyword-stuffing/), open or shut.
- **Headings that are not headings.**  Panel labels that are only styled text lose the structure that [heading tags](https://ursy.com/wiki/heading-tags/) give.

## A worked example {#a-worked-example}

A small UK shop sells walking boots. Its [product page](https://ursy.com/wiki/product-page-seo/) has a description, a size guide, care tips and a returns policy. On mobile, the size guide and care tips sit in 2 accordions built with `details`. The returns panel, built by an outside widget, loads its text only when tapped.

The shop opens Google’s [URL Inspection](https://ursy.com/wiki/url-inspection/) tool in [Search Console](https://ursy.com/wiki/google-search-console/) and views the rendered HTML. The size guide and care text are there. The returns text is not. The fix is to print the returns policy into the page when it loads, then let the widget only handle the open and close. After the next crawl, [URL](https://ursy.com/wiki/url/) Inspection shows the returns text in the rendered HTML too.

## How to check it {#how-to-check-it}

1. Open the page, right click and choose View page source. Search for a sentence from a closed panel. If it is there, it is in the first HTML.
2. Paste the address into our [JavaScript SEO checker](https://ursy.com/javascript-seo-checker/): it shows whether panel words exist before scripts run.
3. Try our [AI readiness checker](https://ursy.com/ai-readiness-checker/) for a view of the page as a script-free bot gets it.
4. Check panel labels with our [heading checker](https://ursy.com/heading-checker/).
5. If panels carry FAQ markup, test it with our [schema checker](https://ursy.com/schema-checker/), and see the [schema checker guide](https://ursy.com/guides/how-to-use-schema-checker/).
6. For a whole site, the [pages AI never reads](https://ursy.com/pro/pages-ai-never-reads/) report (Pro) is built for this job.

All of these sit in our free set of 56 tools on the [free tools](https://ursy.com/free-tools/) page.

## Questions {#questions}

### Does Google give less weight to text in a closed tab? {#does-google-give-less-weight-to-text-in-a-closed-tab}

Google’s public docs do not say it does. They list tabs and accordions as allowed and suggest them for mobile. We do not claim a weighting either way.

### Are tabs bad for people? {#are-tabs-bad-for-people}

Not if the labels are clear. Good [web accessibility](https://ursy.com/wiki/web-accessibility/) means the panels open with a keyboard, which `details` does by default.

### Is this part of on-page SEO? {#is-this-part-of-on-page-seo}

Yes. It sits between [on-page SEO](https://ursy.com/wiki/on-page-seo/) and [technical SEO](https://ursy.com/wiki/technical-seo/), because the build method decides what gets read.

## Related words {#related-words}

- [User experience (UX)](https://ursy.com/wiki/user-experience-ux/)
- [Mobile SEO](https://ursy.com/wiki/mobile-seo/)
- [Client-side rendering](https://ursy.com/wiki/client-side-rendering/)
- [Lazy loading](https://ursy.com/wiki/lazy-loading/)

## Sources {#sources}

- [Google Search Central: spam policies](https://developers.google.com/search/docs/essentials/spam-policies), checked 25 November 2026
- [Google Search Central: mobile-first indexing best practices](https://developers.google.com/search/docs/crawling-indexing/mobile/mobile-sites-mobile-first-indexing), checked 25 November 2026
- [Google Search Central: AI features and your website](https://developers.google.com/search/docs/appearance/ai-features), checked 25 November 2026
- [Google Search Central: general structured data guidelines](https://developers.google.com/search/docs/appearance/structured-data/sd-policies), checked 25 November 2026
- [MDN: the details element](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/details), checked 25 November 2026
- [MDN: the hidden attribute](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Global_attributes/hidden), checked 25 November 2026

*Updated 25 November 2026 by URSY.*
