Search the site
All pages
Snippets
- Accessible Tabs - Navigation snippet: A tab list with three panels, arrow-key, Home and End support and roving tabindex, built with the XON tabs words.
- Alert Banners - Feedback snippet: Information, success, warning and error banners with an icon, a heading, a dismiss button and the right live-region role for each kind.
- Animated Loading Spinners - Loaders snippet: Four loading spinners in plain CSS (ring, dots, bars and pulse), each with a text alternative, a pause switch and a still version for reduced motion.
- App Shell Layout - Layout snippet: A header, a sidebar and a main area on CSS grid with a sticky header and one scrolling region; the sidebar folds behind a button on a narrow shell.
- Bar Chart with a Data Table - Data Display snippet: A bar chart drawn as inline SVG from one data list, with a table view, a sort switch and focusable bars that read out their value.
- Before and After Compare Slider - Media snippet: Two stacked local SVG pictures with a range input that moves a divider between them, and the split read out as a percentage.
- Monthly and Yearly Billing Toggle - Pricing snippet: A two-option billing switch that changes three example plan prices between monthly and yearly and works the saving out from the prices.
- Breadcrumbs and Pagination - Navigation snippet: A breadcrumb trail and a numbered pager with previous, next and gaps, built from real links that fold to a compact pager on phones.
- Button Group and Icon Buttons - Buttons snippet: A segmented radio control, joined buttons, icon-only buttons with accessible names and a split button whose menu is a native popover.
- Card Layouts - Cards snippet: Four card layouts on one auto-fit grid: stacked, horizontal, a whole-card link and a compact list, with light and dark colours.
- Checkbox and Radio Styles - Forms snippet: Styled native checkboxes, radio buttons, option cards and chip toggles that keep their keyboard behaviour, group labels and a strong focus ring.
- Copy to Clipboard Button - Utilities snippet: Buttons that copy a line of code, say so for three seconds in a live region, and select the text for a keyboard copy when the clipboard is missing.
- CSS Button Animations - Buttons snippet: Six button hover, focus and press treatments in plain CSS: lift, underline sweep, fill, press, halo and icon slide.
- Dark Mode Toggle - Utilities snippet: A switch between light and dark that follows the system setting until the visitor chooses, and remembers the choice where storage is allowed.
- Dropdown Menu - Navigation snippet: A menu button that opens a list of actions, with arrow keys, Home, End, type-ahead, Escape and a click outside, written without a library.
- FAQ Accordion - Layout snippet: An accordion of five questions on details and summary, with an animated chevron and one open at a time through the name attribute.
- Feature Icon - Data Display snippet: Beautiful icon containers for features
- Fluid Type Scale - Typography snippet: A seven-step type scale built with clamp() and custom properties, plus measure, leading and spacing tokens that you can copy into your own styles.
- Gradient Button - Buttons snippet: Beautiful gradient buttons with hover animations
- Hero Section - Navigation snippet: Eye-catching hero sections with gradients
- Image Gallery with Lightbox - Media snippet: A thumbnail grid whose items open a native dialog with Previous, Next, arrow keys, Escape and a caption; the artwork is six local SVG drawings.
- Interactive Example - Buttons snippet: Interactive buttons with a click counter and simple animations.
- Interactive Form Validation - Forms snippet: A contact form with per-field rules, messages tied to each field and an error summary that links to the first problem, using XON.
- Dialog box layout (static) - Cards snippet: A static layout of a confirmation box with two buttons. It does not open or close; it has no script.
- Multi-step Form - Forms snippet: A three-step form with a step list, back and next buttons, a check on each step before you move on and a review step. Written with XON.
- Navigation Bar - Navigation snippet: Clean navigation header with logo and menu
- Off-canvas Drawer - Navigation snippet: Two side panels, one from each edge, that open over the page as native modal dialogs and give focus back to their button when they close.
- Pricing Table - Pricing snippet: A three-plan pricing table with a featured plan, feature lists that use words as well as ticks, and a button on each plan. All prices are labelled as examples.
- Profile Card - Cards snippet: A clean and modern user profile card with avatar, social links, and bio section. Perfect for user profiles, team pages, or portfolio websites. Fully responsive and customizable.
- Progress Indicators - Loaders snippet: A native progress bar, a bar that waits for an unknown length, a four-step tracker and a ring, all driven by one slider and all showing the value as text.
- Quote Card - Cards snippet: A quote with the name of its source, on a card with a coloured edge. The text is placeholder text.
- Readable Article Prose - Typography snippet: Typography for long text: headings, lists, links, inline code, a quote, a table and a figure set in a comfortable 65-character column.
- Responsive Data Table - Data Display snippet: A table with caption, scoped headers and right-aligned numbers that reflows into labelled stacked cards on a phone, in plain CSS.
- Responsive Navigation Menu - Navigation snippet: A site header whose links fold behind a Menu button on phones and sit in a row from 40em, written without a library.
- Scroll-snap Carousel - Media snippet: A row of slides that snaps into place with CSS only and moves by touch, wheel, keyboard or jump links, with no script.
- Site Footer - Layout snippet: A site footer with a short brand note, four groups of links that wrap from four columns to two to one, and a bottom bar with a back-to-top link.
- Skeleton Loader - Loaders snippet: Card and list skeletons with a shimmer that stops under reduced motion, aria-busy on the container and a button that swaps them for real content.
- Sortable and Filterable Table - Data Display snippet: A real table whose headers sort, with a text filter, five rows a page and a status line. The rows are plain HTML. Written with XON's table part.
- Stats Cards - Data Display snippet: Two statistic tiles. The figures are example values, not real data.
- Status Badges - Data Display snippet: Colorful status indicators and labels
- Article Layout with Sticky Contents - Layout snippet: A two-column article page whose contents list stays in view beside the text on wide screens and folds into a details block on phones.
- Subscribe Form - Forms snippet: Simple and clean email subscription form
- Text Inputs - Forms snippet: Text, email, number, search and multi-line fields with a label, a hint and an error line tied to the field, switched on by the browser's own checks.
- Toast Notifications - Feedback snippet: A stack of short messages in a polite live region: info, success and error toasts that dismiss themselves, pause on hover and clear with Escape.
- To-do List - Utilities snippet: A small task list with add, tick, delete, filter and clear-done, with the count announced in a live region and nothing sent anywhere.
- Toggle Switch Group - Forms snippet: A group of settings-style switches built on real checkboxes with role switch, visible On and Off text and a disabled example.
- Tooltip and Popover - Feedback snippet: A hint on hover and keyboard focus and a click-to-open popover built on the native popover attribute, with Escape to close either.
Tutorials
- Build a to-do list: plain JavaScript, then XON: Handle many buttons with one listener, keep state in one object, draw the list without innerHTML, then write the same list with XON.
- Centring and aligning with Flexbox: Centre one item, space several items, push one to the far end and wrap a row, with the few Flexbox properties that do the work.
- CSS transitions and animations with reduced motion: Animate a state change with a transition, repeat with a keyframe animation, and switch both off for people who ask for less motion.
- Dark mode with CSS variables and a switch: Keep colours in custom properties, follow the system's dark setting, and add a switch that overrides it and remembers the choice.
- Form validation with HTML and a little JavaScript: Use the browser's own form rules first, tie every error message to its field and add an error summary with a little script.
- A modal dialog with the dialog element: Open a native dialog as a modal, give it a name, close it three ways and send focus back to the button that opened it.
- A responsive card grid without media queries: Lay out cards with auto-fit and minmax, scale space and type with clamp, and let a card adapt to its own width with a container query.
- A responsive navigation menu that folds on a phone: Build a menu that is a plain list of links, sits in a row on wide screens and folds behind a button on a phone.
Documentation
- What the automated checks are: The automated checks on snippets, tutorial examples and templates: what they test, the tools and versions, and what they do not show.
- The Playground: what it does: What each part of the Playground does, its keyboard shortcuts, what is stored in your browser, what a preview can and cannot do, and how Make a movie works.
Pages
- htmlcssjs.net - HTML and Tailwind page templates, a free set, and a free code playground: Three complete sets of linked pages in plain HTML and Tailwind with live demos, one free to download (the paid pack is not on sale yet), plus a free code playground and a snippets gallery.
- About: About htmlcssjs.net: template sets in plain HTML with Tailwind classes, a free HTML, CSS and JavaScript playground and a snippet gallery, run by an individual.
- Changelog: What changed on htmlcssjs.net, with dates.
- How to reach the maker: How to reach the maker of htmlcssjs.net: the public issue tracker on GitHub, until a support mailbox exists.
- Cookies: Which cookies and browser storage htmlcssjs.net uses. It uses no analytics or advertising cookies.
- Playground: write HTML, CSS and JavaScript and run it in your browser: Write HTML, CSS and JavaScript and see the result run in a sandboxed preview. Save, share, export and record a movie, all in your browser.
- Frequently Asked Questions: Answers about the htmlcssjs.net playground, the snippet gallery, the template sets and privacy.
- The free set: download: Download the free template set as plain files with the SHA-256 hash of every file. No checkout and no account.
- How it is made and what Verified v1 means: The exact checks, tools and versions behind the dated check record of each template set, and in plain words what the check is not.
- Follow the sale: There is no newsletter. The templates pack is not on sale yet; here is where to follow it.
- Pricing - Templates pack: Intended one-time prices of the htmlcssjs.net templates pack: personal licence and team licence. Not on sale yet. The free set is a direct download.
- Privacy: What htmlcssjs.net collects (almost nothing), why, and your rights. Draft with marked blanks.
- Security: How htmlcssjs.net is built to limit what a page can do, and what it does not claim.
- Snippets Gallery: Browse ready-to-use HTML, CSS and JavaScript snippets with a live preview. Copy the code or open any snippet in the playground.
- Templates: HTML and Tailwind page sets with live demos: Three complete sets of linked pages in plain HTML and Tailwind, with a live demo of every page, a dated check record and a free set to download. The paid pack is not on sale yet.
- Terms: The terms of service of htmlcssjs.net. Draft with marked blanks, not yet reviewed by a solicitor.
- Tutorials: HTML, CSS and JavaScript with examples that run: 8 short tutorials with 24 examples. Each example runs on the page and opens in the Playground, where you can change it.
- Who makes this: An individual developer, the author of XON: the public history of the GitHub account, what exists today and how to reach the maker.