Service price list with tabs in HTML and CSS
Indicative prices sorted by trade in tabs, with the unit of each service, a VAT-inclusive / excl. switch and a free-quote notice.
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>Grille tarifaire par prestation</title>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<main class="demo">
<section class="gtp" data-gtp data-gtp-rate="10" aria-labelledby="gtp-title">
<header class="gtp__head">document.querySelectorAll("[data-gtp]").forEach((root) => {
const list = root.querySelector('[role="tablist"]');
const tabs = [...list.querySelectorAll('[role="tab"]')];
const panels = tabs.map((tab) => document.getElementById(tab.getAttribute("aria-controls")));
const toggle = root.querySelector("[data-gtp-toggle]");
const modes = [...toggle.querySelectorAll("[data-gtp-mode]")];
const status = root.querySelector("[data-gtp-status]");
const rate = Number(root.dataset.gtpRate);
const money = (value) =>
new Intl.NumberFormat("fr-FR", {
style: "currency",
currency: "EUR",:root {
--gtp-surface: #ffffff;
--gtp-text: #1f1a17;
--gtp-muted: #5c524b;
--gtp-line: #eaded3;
--gtp-row: #f1e7de;
--gtp-tab-line: #e2d3c6;
--gtp-accent: #9a3412;
--gtp-accent-hover: #7c2d12;
--gtp-on-accent: #ffffff;
--gtp-unit-bg: #fbe9dc;
--gtp-unit-text: #7c2d12;Free component: copy it freely, including for commercial projects.
Other tabs components in HTML and CSS
Tabs components in HTML and CSS
Accessible tabs on large screens that turn into an accordion on phones, with the right ARIA roles in each mode.
- Tailwind
- React
- CSS
- WordPress

Underlined tabs
FreeUnderstated tabs with an underlined active tab, to organize the information on a product page.
- Tailwind
- React
- CSS
- WordPress

Two tabs to show different opening hours by season, in a compact card.
- Tailwind
- React
- CSS
- WordPress

A dark code block with one tab per package manager, for technical documentation.
- Tailwind
- React
- CSS
- WordPress