Site SEO AI Auditby Internet Solutions

Tabs and Accordions: Does Google Count Hidden Content?

29 tháng 9, 20268 phút đọcSEO 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
Kiểm tra website của bạn — miễn phí.Mọi lỗi SEO trên website của bạn — và cách sửa chính xác.
Bắt đầu miễn phí
Internet Solutions

Sản phẩm khác từ đội ngũ chúng tôi

Do Internet Solutions phát triển. Hãy thử các sản phẩm khác của chúng tôi — mỗi sản phẩm giúp bạn tiết kiệm thời gian theo một cách riêng.

internet-solutions.net ↗
01Tự động đăng mạng xã hội
PostRSS

Bài mới từ nguồn cấp RSS của bạn được tự động đăng lên Facebook, X, LinkedIn, Telegram và hơn 60 mạng khác.

Gói miễn phí · từ 2014Truy cập →
02Chat trực tuyến AI cho website
Talkmio

Website của bạn trả lời khách truy cập 24/7 từ chính nội dung của bạn, bằng ngôn ngữ của họ.

Gói miễn phí · không cần thẻTruy cập →
03Trợ lý AI
Ask Mio

Trò chuyện, viết code, thiết kế, viết bài và nghiên cứu. Mio chọn mô hình tốt nhất cho từng việc.

Gói miễn phíTruy cập →
04Lái tự động AI cho blog và mạng xã hội
AI Blog Autopilot

AI viết bài SEO dài 2.000–3.000 từ và chia sẻ từng bài lên hơn 58 mạng xã hội.

3 bài đầu tiên miễn phíTruy cập →
05Kiểm tra sức khỏe website
Site AI Audit

SEO, tốc độ, SSL, bảo mật và cấu hình email trong một báo cáo, sắp xếp theo việc cần sửa trước.

Lần kiểm tra đầu tiên miễn phíTruy cập →
06Nguồn cấp RSS và sản phẩm
RSS Feed Creator

Tạo RSS từ bất kỳ trang web nào, cùng nguồn cấp sản phẩm cho Google và Meta tự động cập nhật.

Gói miễn phíTruy cập →
07Phát triển website và SEO
Internet Solutions

Website, cửa hàng trực tuyến và hệ thống theo yêu cầu, do đội ngũ của chúng tôi thiết kế, xây dựng và vận hành.

Từ 2011Truy cập →
Site SEO AI Audit
Tổng quan quyền riêng tư

Website này dùng cookie để mang lại trải nghiệm người dùng tốt nhất có thể. Thông tin cookie được lưu trong trình duyệt của bạn và thực hiện các chức năng như nhận ra bạn khi bạn quay lại, giúp đội ngũ chúng tôi hiểu phần nào của website bạn thấy thú vị và hữu ích nhất.