Build a Responsive Three-Tier Pricing Section with Monthly/Yearly Toggle
A single HTML file with three pricing cards, a working billing switch that recalculates prices, a highlighted recommended plan and accessible feature checkmarks.
You getone complete HTML file in a single code block, then 3 short ideas to extend it.
The prompt
Act as a senior product designer and front-end developer. Build a pricing section for Tallyhouse, a bookkeeping app for small creative studios, as one self-contained HTML file. It shows three plans, Solo, Studio and Agency, with a monthly/yearly billing toggle that recalculates every price. Rules:
1. Billing toggle: a button with role="switch" and aria-checked that works with click, tap, Space and Enter. Clicking the Monthly or Yearly labels also sets it. Yearly billing shows the per-month price at 20% off, the total billed per year and a "Save 20%" badge. Announce each change through an aria-live region.
2. Highlight Studio as the recommended plan with a "Most popular" ribbon, an accent border and a slightly larger card. Never rely on color alone.
3. Each card lists the same 7 features with SVG check or cross icons. Give every icon visually hidden "Included" or "Not included" text so the cards also work as a comparison.
4. Layout: cards stack on narrow screens and sit in three columns from 900px. The section fits frames 360-1280px wide.
5. Palette: off-white background, navy ink text, one teal accent. Use a system font stack, a clear type scale, AA contrast and visible focus rings. Price changes get a short fade that is disabled under prefers-reduced-motion.
6. No external libraries, fonts, images, network calls, storage, alerts or forms. Call-to-action buttons show an inline confirmation message instead.
Output format: one complete HTML file in a single code block, then 3 short ideas to extend it.Example output
Tips and common edits
Why this works
- A native button with role=switch gets Space and Enter for free, and aria-checked keeps screen readers in sync.
- Storing monthly and yearly prices per plan means one render function updates every number, so prices never drift out of sync.
- Hidden Included/Not included text plus a ribbon label means status never depends on color alone.
Paste the prompt into ChatGPT, Claude or Gemini. Save the returned code as pricing.html and open it in any browser, or view it in the chat's preview or canvas panel.
Common edits
- Change the product name, plan prices and discount percentage, or swap the teal accent for your brand color.
- Add a fourth Enterprise tier or a full comparison table below the cards for longer feature lists.
Prompt details
- By
- Prompts-GPT editors
- Published
Did this prompt work?
Keep exploring
More like this
Build a Sticky-Header Plan Comparison Page with Swipeable Mobile Columns
A single HTML pricing comparison page with a sticky plan header, grouped checkmark rows, a billing toggle and swipeable one-plan columns on phones.
Design an Accessible Settings Page with Toggles, Segmented Controls and Sliders
A ready-to-paste prompt that builds a polished single-file settings page with custom accessible toggles, segmented controls and sliders that update a live reading preview.
Build a Light/Dark Mode Toggle Demo Page with Smooth Theme Switching
A single HTML page with a polished light/dark theme switch built on CSS custom properties that defaults to the system theme, honors reduced motion, and uses no storage.
Build a Multi-Step Onboarding Wizard with Stepper and Inline Validation
A four-step onboarding wizard in one HTML file, with a clickable stepper, progress bar, inline validation, a review screen, and keyboard and swipe navigation.
Build a Playful Animated 404 Error Page with SVG Art and Site Search
A complete single-file 404 page with an original animated hot-air balloon SVG, a live-filtering search box and helpful recovery links that respect reduced motion.
Build a Responsive Navigation Bar With Mega Menu and Mobile Drawer in HTML
A complete single-file site header with a hover, click and arrow-key mega menu on desktop and an animated hamburger drawer with accordions on small screens.
- Build an Accessible Modal, Toast and Tooltip Showcase in One HTML File
- Build a Button and Form Field States Reference Sheet in a Single HTML File
- Build a Color Blindness Simulator That Previews a Palette on a Dashboard Card
- Build a Drag-to-Arrange Brand Mood Board with Color, Texture and Type Tiles
- Build a Draggable Color Harmony Wheel With Live UI Preview in One HTML File
- Build a Live Accessible Color Palette Builder with a WCAG Contrast Matrix