Weekly class schedule in HTML and CSS
A studio or school's weekly timetable, filterable by discipline and level, with remaining places and a day-by-day view on mobile.
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>Planning de cours hebdomadaire</title>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<main class="demo">
<section class="pch" aria-labelledby="pch-title" data-pch>
<header class="pch__head">document.querySelectorAll("[data-pch]").forEach((root) => {
const courses = [...root.querySelectorAll("[data-pch-course]")];
const days = [...root.querySelectorAll("[data-pch-day]")];
const tabs = [...root.querySelectorAll("[data-pch-tab]")];
const tablist = root.querySelector("[data-pch-tabs]");
const status = root.querySelector("[data-pch-status]");
const hideFull = root.querySelector("[data-pch-full]");
const filters = { discipline: "all", level: "all" };
const mobile = window.matchMedia("(max-width: 47.99rem)");
const today = new Date().getDay();
let current = today >= 1 && today <= days.length ? today - 1 : 0;
:root {
--pch-text: #1d1530;
--pch-muted: #5b5170;
--pch-card: #ffffff;
--pch-col: #f3f0fa;
--pch-line: #ddd6ee;
--pch-accent: #5b21b6;
--pch-accent-text: #ffffff;
--pch-ring: #5b21b6;
--pch-full: #b42318;
--pch-ok: #166534;
--pch-classique: #be185d;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 table of the towns and postcodes a tradesperson covers, with response time and travel fee, filtered by search and by zone.
- 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