Practical CSS and JavaScript components

Guide Updated 24 October 2026

Use these guides to build controls, overlays, tables and charts with complete original CSS and JavaScript examples. Start with the interaction you need, work through the awkward cases, then use the comparison data to narrow the implementations worth trying.

Start with the interface problem

Choose the guide that matches the part of your interface you need to change. Each example stands on its own, with no analytics script or remote dependency. All implementation code is original.

Use the comparison data

The carousel index contains eighteen package configurations and two related original CSS scroll-snap patterns. Its rows identify the version, dependencies, published file sizes, configuration and behaviour fields. The two CSS patterns share a platform; they are not separate software products. Filters narrow the records without assigning a score or ordering vendors by merit.

The tooltip and popover ledger applies the same approach to twenty implementations. Software integrations and native browser patterns are labelled separately. Start with the interaction you need, then read the configuration and the note behind each value. A useful result needs both the outcome and the conditions that produced it.

The planned chart data-alternative ledger is not included. The bar and line guides already include original synthetic data and examples that keep the chart and table aligned. Those examples are individual teaching fixtures, rather than a completed comparison of charting tools.

Follow an example into your project

Read the answer, copy the complete example and work through its cases before adding your own content. Use the demo to explore this guide map. Keep the example’s data, controls and cleanup together until you understand which state belongs to the component and which belongs to its containing page.

The editorial policy, methodology and corrections process explain how the work is maintained. About and disclosure describe the new publication’s independence and sponsor boundaries. Sponsor modules cannot alter a dataset row, ranking, result or primary answer.

Not covered on this page

Sources

  1. WAI-ARIA Authoring Practices: Carousel pattern. Interaction and semantic guidance. Accessed 24 October 2026. ↩