Compact bordered FAQ in HTML and CSS
A tight accordion within a single frame, for practical information pages.
Here is an excerpt of this component's code in HTML and CSS. The full code is free for members, ready to copy into your project.
This component also comes in
The code in HTML and CSS
<!doctype html>
<html lang="fr">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>FAQ compacte bordée</title>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<main class="demo">
<section class="bfaq">
<h2>Informations pratiques</h2>:root {
--bfaq-bg: #ffffff;
--bfaq-open: #f0fbfa;
--bfaq-line: #c9e6e3;
--bfaq-text: #0f2f2c;
--bfaq-muted: #3f5f5b;
--bfaq-ring: #0f766e;
--demo-bg: #f4fbfa;
--demo-text: #0f2f2c;
}
@media (prefers-color-scheme: dark) {Free component: copy it freely, including for commercial projects.
Other FAQ and accordions components in HTML and CSS
FAQ and accordions components in HTML and CSS
A native accordion FAQ where each answer asks “Was this answer helpful?”, with a thank-you message and a remembered vote.
- Tailwind
- React
- CSS
- WordPress

Two-column FAQ
FreeAn introduction and a contact link on the left, expandable questions on the right.
- Tailwind
- React
- CSS
- WordPress

FAQ by category
FreeQuestions grouped under subheadings, for long FAQs.
- Tailwind
- React
- CSS
- WordPress

Open card FAQ
FreeAll answers visible at once, presented as a card grid.
- Tailwind
- React
- CSS
- WordPress

Frequently asked questions followed by a card inviting visitors to call or write.
- Tailwind
- React
- CSS
- WordPress

Accordion FAQ
FreeQuestions that expand one by one, with FAQPage structured data for Google.
- Tailwind
- React
- CSS
- WordPress