Service area and response time table in HTML and CSS
A table of the towns and postcodes a tradesperson covers, with response time and travel fee, filtered by search and by zone.
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>Tableau des zones et délais</title>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<main class="demo">
<section class="tzd" data-tzd aria-labelledby="tzd-titre">
<div class="tzd-intro">document.querySelectorAll("[data-tzd]").forEach((root) => {
const on = (el, type, fn) => el.addEventListener(type, fn);
const tbody = root.querySelector("tbody");
const rows = [...tbody.rows];
const input = root.querySelector("[data-tzd-search]");
const status = root.querySelector("[data-tzd-status]");
const empty = root.querySelector("[data-tzd-empty]");
const picks = [...root.querySelectorAll("button[data-tzd-pick]")];
// Visitors type "st etienne" or "reze": accents, hyphens and the usual abbreviations must not matter.
const norm = (s) =>
s
.normalize("NFD"):root {
--tzd-card: #ffffff;
--tzd-text: #1a2230;
--tzd-muted: #4b5563;
--tzd-line: #d8dee8;
--tzd-head: #f2f5f9;
--tzd-accent: #1d4ed8;
--tzd-on-accent: #ffffff;
--tzd-z1: #dcfce7;
--tzd-z1-text: #14532d;
--tzd-z2: #fef3c7;
--tzd-z2-text: #78350f;Free component: copy it freely, including for commercial projects.
Other data tables components in HTML and CSS
Data tables components in HTML and CSS
A documentation table showing where a kit or component has been tested (static HTML, WordPress, Elementor, Webflow, v0…), with status, last test date and a remark, filterable by status.
- Tailwind
- React
- CSS
- WordPress

A timetable table sorted by column and filtered with level and free-place chips, whose rows each become a card on phones.
- Tailwind
- React
- CSS
- WordPress

A filterable table whose visible rows export in one click to a CSV file that opens cleanly in Excel or LibreOffice.
- Tailwind
- React
- CSS
- WordPress

A price table by service: one package to pick, options to tick, and the total with the estimated time recalculated on every click.
- Tailwind
- React
- CSS
- WordPress

A product spec sheet as two-column tables in native collapsible sections, with a button to open or close them all.
- Tailwind
- React
- CSS
- WordPress

The results of a race or competition, sortable by place, name or category, with the podium highlighted, the gap to the winner and the sort order announced.
- Tailwind
- React
- CSS
- WordPress