Your website does not need JavaScript
summary
Claim: a fully functional website runs as completely static HTML and CSS — no JavaScript, no build tools, no npm — demonstrated as a single HTML file that implements SPA-like navigation via :target, collapsible FAQ with details/summary, labeled input[type=range] + datalist for NPS-style controls, radio-driven testimonial slider and image carousel, and a theme toggle using prefers-color-scheme. Uses CSS nesting, variables, grid and the new :has selector (landed in Firefox Dec 2023). Works in modern browsers but has accessibility, URL-hash and persistence caveats and some features need careful ARIA or fallback.
AI-written summary · about
chapters (16)
- 0:00Introduction and welcome
- 1:31Why JavaScript is overused
- 2:36Content targeting with HTML
- 4:01Single page apps without JS
- 5:02Browser support considerations
- 6:12Accordions with HTML details
- 7:39CSS nesting without build tools
- 9:26Range sliders with data lists
- 11:58Custom range slider styling
- 18:13Testimonial sliders with radio inputs
- 27:01Toggle switches with CSS
- 31:00Dark mode with prefers-color-scheme
- 35:02Image carousels without JavaScript
- 39:38Accessibility and performance notes
- 41:04When to avoid JavaScript
- 42:09Q&A session
