Desktop · 1280px · shown at 0% · edit the text, images and colours in the panel
FAQ Accordion — Free Website Section Template
FAQ · v1.0.0 · Updated 2026-10-20 · Responsive · GSAP animation · HTML, React & Vue
Extend with AI
Take This Section Further With AI
Ask an AI assistant to adapt the FAQ: add a search box that filters questions, group questions under category tabs, or generate questions from your support tickets.
Prompt to recreate it
Copy this into your AI assistant of choice to build the effect from scratch, or as a jumping-off point for your own variant:
Create an FAQ section in HTML, CSS and JavaScript.
- Centred header with eyebrow, heading with a highlighted phrase and intro.
- A single column (max 820px) of native <details> elements; each <summary> holds the question and a round plus icon that becomes a minus when open; answers in a div below.
- JavaScript with GSAP: intercept summary clicks to animate the answer height from 0 to auto and back, keep one question open at a time and open the first on load; skip animation for prefers-reduced-motion and work without GSAP.
- Add FAQPage JSON-LD generated from the questions, and a contact line with a link under the list.Want to tighten it up first? Run this prompt through the AI Prompt Studio to score it across 8 quality dimensions, catch anti-patterns, and tune the wording for Claude, ChatGPT, or Gemini before you paste it in.
What's included
Features
About this section
FAQ Accordion — Free Animated FAQ Section Template

FAQ Accordion is the FAQ section most websites need: a centred heading and intro, a single column of questions that expand to show their answers, and a contact line for anyone still unsure. The first question starts open, and opening another closes the previous one, so the list always stays tidy.
Built on native HTML
Every question is a real <details> and <summary> element. That means it works with no JavaScript at all, keyboard users can tab through and press Enter or Space, the browser's find-in-page opens matching answers, and every answer is in the HTML, where search engines can read it.
Smooth with GSAP
With GSAP loaded, answers open with a smooth height animation and their text slides in, while the plus icon rotates into a minus. Closing animates too. People who prefer reduced motion get instant open and close.
FAQPage schema included
The exported HTML page includes FAQPage structured data (JSON-LD) built from your questions and answers, ready for Google's FAQ rich results and for AI assistants that read structured data.
Edit and export
Add up to fifteen questions, reorder them so the most common come first, and edit or switch off the contact line. Export HTML, a ZIP, React or Vue, or fork into My Code.
Why use it
Why Use the FAQ Accordion
How it’s different
How It’s Different From Other Free Section Templates
Step by step
How to Use
- 1Edit the contentFill in the heading, questions and contact line in the panel. Switch the contact line on or off. Wrap words in *asterisks* to colour them.
- 2Add your imagesUpload your own images (resized in your browser and kept on your device) or paste a hosted image URL.
- 3Match your brandPick a colour preset or exact colours, choose heading and body fonts from Google Fonts or your own uploaded font, set the corner radius and width, or apply your brand kit.
- 4Animate and previewChoose a GSAP entrance effect and speed, press Play animation, and check the section on desktop, tablet and mobile.
- 5Save and exportSave it to My designs, then export a single HTML file, a ZIP with your images, a React or Vue component, or fork it into My Code.
Real-world uses
Common Use Cases
In real websites
Website Templates That Use the FAQ Accordion Section
The FAQ Accordion section is part of 9 complete website templates in the free Website Builder, so you can see it in a full page before you use it on its own: SaaS Landing Page, Real Estate Agency Website, Gym & Fitness Website, Local Service Business Website, Online Course Website, Event & Conference Website, Boutique Hotel Website, Law Firm Website, Product Landing Page Store. Open any of them in the builder to edit the whole page, or keep customising this section by itself.
Got questions?
Frequently Asked Questions
Yes. Each question is a native details/summary element, so it opens and closes in every browser without any script. GSAP only adds the smooth animation and the one-at-a-time behaviour.
Yes. The exported HTML page includes FAQPage JSON-LD generated from your questions and answers. For React or Vue, add the same JSON-LD to your page head with your framework’s head manager.
In this section, opening a question closes the previous one. For multiple open answers, use the Split FAQ With Contact Card, or remove "single" from the data-accordion attribute in the exported code.
Yes. Summary elements are focusable and toggle with Enter or Space, screen readers announce them as expandable, and animation is skipped for people who prefer reduced motion.
It saves an editable copy of your FAQ Accordion in My Code, the UI Snippets code editor: the section markup goes in the HTML panel, its CSS (theme variables, base styles and layout) in the CSS panel, and the GSAP library is added as a CDN link, so you can keep refining the code and save your own versions.
Yes. Every section is free for personal and commercial work, with no account, no watermark and no attribution: export it on its own as HTML, React, Vue or Next.js from its page, or use it in a website you build and export in the Website Builder.