What does Google say about SEO? /
Quick SEO Quiz

Test your SEO knowledge in 3 questions

Less than 30 seconds. Find out how much you really know about Google search.

🕒 ~30s 🎯 3 questions 📚 SEO Google

Official statement

Since around 2014, Google has been able to see content within collapsible elements or accordions. Hiding content in this way has no negative effect on how the content is represented in search results.
🎥 Source video

Extracted from a Google Search Central video

💬 EN 📅 21/06/2022 ✂ 12 statements
Watch on YouTube →
Other statements from this video 11
  1. L'expérience de page suffit-elle vraiment à garantir une bonne UX pour Google ?
  2. Faut-il vraiment penser aux utilisateurs avant les machines en SEO ?
  3. Tirets vs underscores dans les URLs : pourquoi Google préfère-t-il l'un à l'autre ?
  4. Le contenu caché est-il devenu aussi important que le contenu visible pour Google ?
  5. Googlebot peut-il vraiment indexer du contenu caché derrière des clics utilisateur ?
  6. Pourquoi Google ignore-t-il votre navigation si elle n'utilise pas de vrais liens anchor ?
  7. Les Core Web Vitals suffisent-ils vraiment à mesurer l'expérience utilisateur ?
  8. Pourquoi Google refuse-t-il de donner des critères précis sur certains aspects de l'UX ?
  9. Les URLs lisibles et cohérentes sont-elles vraiment un critère de ranking ?
  10. L'accessibilité web influence-t-elle directement le classement dans Google ?
  11. Lighthouse rate-t-il vraiment la qualité de vos ancres de liens ?
📅
Official statement from (3 years ago)
TL;DR

Google has been able to index content placed in accordions or collapsible elements normally since 2014. No penalty is applied for this common UX practice. Content that is hidden visually but present in the HTML is treated as standard content.

What you need to understand

Why is Google clarifying this now?

Accordions and tabs have become ubiquitous in modern web design, especially on mobile. Yet an old SEO belief persists: hiding content must somehow be suspicious to Google.

Gary Illyes's statement puts this ambiguity to rest. Since 2014, Googlebot interprets JavaScript and accesses content that is initially hidden. The old distinction between visible and hidden content no longer has technical relevance.

What's the difference between this and cloaking or malicious hidden text?

Cloaking means serving different content to bots and users. Techniques involving fraudulent hidden text (font-size:0, white text on white background) are designed to manipulate rankings.

Accordions, on the other hand, improve user experience. The content remains accessible with a single click — there's no intent to deceive. Google has made this distinction for a long time.

How exactly does Google treat collapsed content?

The crawler explores the complete DOM after JavaScript execution. Any element present in the final HTML, even if initially hidden by CSS or JS, is indexable and weighted normally.

No devaluation, no specific filters. Content under an accordion counts just as much as a standard paragraph for understanding the page's theme.

  • Accordion content is fully indexed since 2014
  • No negative ranking impact from this UX structure
  • The distinction is made on intent: UX improvement vs manipulation
  • JavaScript is executed, the final DOM is analyzed
  • Appropriate semantic markup remains recommended

SEO Expert opinion

Does this statement actually reflect what we see in practice?

Yes, but with important nuances. Practical tests confirm that Google does index accordion content. Featured snippets regularly pull from these collapsed sections, proving that content is fully considered.

However — and Gary Illyes remains silent on this point — the actual weighting of this content compared to immediately visible content remains debated. Some audits show performance variations depending on structure. [Needs verification] on your own sites with rigorous A/B testing.

What are the practical limits of this rule?

The statement applies to standard HTML/CSS/JS accordions. It doesn't explicitly cover edge cases: 4-level nested accordions, content loaded via late AJAX, complex progressive loading.

For mobile-first indexing, one crucial point: if your mobile content uses accordions but the desktop version displays it fully, it's the mobile version that matters. Ensure your mobile accordions are technically crawlable.

Caution: JavaScript execution speed remains a factor. If your accordions require 8 seconds of JS loading before becoming accessible to the crawler, you have a crawl budget and rendering problem, not a content penalty.

Should you systematize accordions everywhere?

No. Just because Google doesn't apply a negative filter doesn't mean you should turn every page into a series of closed accordions. UX comes first — and a page with 15 closed accordions by default creates a poor experience.

Behavioral signals (bounce rate, time on page, interactions) indirectly influence SEO. A page that frustrates users with too many accordions will lose performance, even if technically the content is indexed.

Practical impact and recommendations

What should you check on your existing pages?

Test rendering from Google's perspective. Use the URL inspection tool in Search Console and examine the rendered HTML. Does your accordion content appear in the final DOM?

Also check rendering time. If JavaScript takes more than 5 seconds to execute, Googlebot might not wait. Optimize JS loading to ensure fast and complete rendering.

How should you structure accordions for optimal SEO?

Use semantic HTML5 tags: <details> and <summary> work natively without JS. Google understands them perfectly. If you use custom divs with scripts, ensure the content remains in the initial HTML, not loaded via AJAX after clicking.

Structure with appropriate headings (h2, h3) inside accordions. Google uses the heading hierarchy to understand the relative importance of sections, accordions or not.

What critical mistakes should you avoid?

Don't load accordion content only on first user click via AJAX requests. Google may not trigger these events during crawling. Content must be present in the initial HTML, even if hidden by CSS.

Avoid poorly configured JS frameworks that make content inaccessible without interaction. Systematically test with JavaScript disabled: if content disappears completely, that's a red flag.

  • Inspect your pages via the Search Console tool to verify rendering
  • Prefer <details>/<summary> or lightweight JavaScript solutions
  • Keep content in the initial HTML, not loaded via post-click AJAX
  • Maintain consistent heading hierarchy within accordions
  • Optimize JavaScript execution speed (crawl budget)
  • Test mobile-first behavior specifically
  • Balance UX and accordion quantity — not 20 per page
Accordions have been SEO-safe for a long time, as long as they're implemented properly. The key: content present in HTML, fast rendering, clear semantic structure. If technical audits of your JavaScript implementations reveal rendering issues, or if you're unsure about the optimal architecture for your collapsible content, guidance from a specialized SEO agency can prove valuable in avoiding costly mistakes and ensuring flawless indexing.

❓ Frequently Asked Questions

Les accordéons ralentissent-ils l'indexation de mon contenu ?
Non, si le contenu est présent dans le HTML initial. Google exécute le JavaScript et accède au DOM complet. En revanche, un JS qui met plus de 5 secondes à charger peut poser problème.
Le contenu en accordéon est-il moins bien classé que le contenu visible ?
Google affirme qu'il n'y a pas de pénalité. Les observations terrain montrent une indexation complète, mais des débats subsistent sur une éventuelle pondération différente. Testez sur vos propres pages.
Peut-on mettre du contenu important dans des accordéons sans risque ?
Oui, techniquement. Mais si ce contenu est stratégique pour la conversion ou la compréhension, réfléchissez à l'UX : un accordéon fermé par défaut peut freiner l'engagement utilisateur.
Les balises <details> et <summary> sont-elles meilleures que des accordéons JavaScript ?
Oui, elles fonctionnent nativement sans JS et sont sémantiquement explicites. Google les comprend parfaitement. C'est la solution la plus propre et la plus robuste.
Que se passe-t-il si mon accordéon charge le contenu en AJAX au clic ?
Googlebot pourrait ne pas déclencher l'événement de clic et manquer ce contenu. Toujours inclure le contenu dans le HTML initial, même masqué, pour garantir l'indexation.
🏷 Related Topics
Content AI & SEO Pagination & Structure Web Performance

🎥 From the same video 11

Other SEO insights extracted from this same Google Search Central video · published on 21/06/2022

🎥 Watch the full video on YouTube →

Related statements

💬 Comments (0)

Be the first to comment.

2000 characters remaining
🔔

Get real-time analysis of the latest Google SEO declarations

Be the first to know every time a new official Google statement drops — with full expert analysis.

No spam. Unsubscribe in one click.