Accordion FAQ

Collapsible FAQ built on native details/summary elements, so it opens and closes with no JavaScript. Only one answer is open at a time.

accordionfaqcollapsibledetailssummaryinteractive

About this block

A list of questions that open to show their answers when someone taps them. It keeps a long FAQ short on the page, so visitors scan the questions and open only the ones they care about. Opening one question closes the one that was open, which keeps the list tidy on phones.

When to use it

  • You get the same handful of questions by email or phone and want to answer them once.
  • A pricing, booking or contact page needs to clear up doubts before people commit.
  • You have more answers than fit comfortably on screen as plain text.
  • You want a short FAQ at the end of a service or product page.

What's inside

  • 4 sample questions stacked in a single column, each separated by a thin line.
  • Each question is an h3 heading with a chevron on the right that flips up when the answer opens.
  • Answers sit in slightly softer text and slide open with a short fade.
  • Only one answer stays open at a time. It's built on the browser's own open-and-close element, so it works without any scripts.
  • The layout is the same on every screen size. Long questions wrap onto a second line on phones.

How to customize it

  • Replace the sample questions with the ones your customers really ask. Use their wording, not yours.
  • Duplicate an item to add another question, or delete the ones you don't need.
  • Keep each answer to two or three sentences. If an answer needs more, add a Link below the accordion to a page that covers it in full.
  • Place it inside a section with a heading like "Questions" or "Before you book" so people know what it is.

Questions

Will Google show my FAQ answers in search results?
Probably not as a dropdown. Since 2023 Google shows FAQ rich results only for well-known government and health sites. Your questions and answers are still plain text on the page, so search engines can read and index them.
Is the hidden answer text bad for SEO?
No. The answers are in the page's HTML even when closed, and search engines read content in open-and-close sections.
Can people use it with a keyboard or screen reader?
Yes. Each question can be reached with the Tab key and opened with Enter or Space, and screen readers announce whether it's open or closed.

Browse other blocks

Same library cards — preview live and grab the code from any block.

View full library

Dropdown menu

CSS-first click dropdown with trigger button and option panel. Zero JavaScript required.

Animated cards row

Three feature cards with staggered scroll-triggered fade-up entrance animations.

Modal dialog

Click-triggered modal with backdrop overlay, content panel, and close behavior.

Hover lift card

Card with hover lift animation. Floats up on hover, settles on release.

Image carousel

Image slideshow that shows one photo at a time, with previous and next arrows and dot indicators.

Logo marquee

Logo strip that scrolls sideways in a seamless loop and pauses on hover. Logos sit grey and faded until hovered.

Newsletter popup modal

Popup that opens once per visitor when the page loads, with an email signup form. Closing it is remembered, so it doesn't come back.

Tabs content switcher

Tabbed interface with 3 panels. Click a tab to show its content and hide the others; the active tab is underlined in the primary colour.

Cookie consent banner

Fixed bottom bar that auto-shows on first page load. Persists accepted/rejected state in localStorage. Shows only once per visitor.

Contact CTA with modal form

Accent-coloured CTA card whose button opens a centred contact modal with a name, email and message form. Fits bento grids, footers and pre-footer bands.

Scroll-pinned horizontal panels

A section that stays pinned while vertical scrolling slides a row of step panels sideways, then releases.

Steps that follow the scroll

A sticky step list and a "Step 2 of 4" counter that follow whichever section is on screen as the visitor scrolls.