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

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

One HTML file. Save it and open it in any browser.Open full screen

Example: Tallyhouse pricing, a three-plan section for a studio bookkeeping app.

  • Toggle billing: click the switch or the Monthly/Yearly labels, or Tab to the switch and press Space. Prices drop 20% and each card shows the yearly total and the savings.
  • Studio is marked Most popular.
  • Every card lists the same seven features with checks and crosses, so you can compare plans.
  • Click a plan button to see an inline confirmation.
  • Resize the window to watch the cards stack.
Written by AI from this prompt. Your results will vary.

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
How prompts are written and checked

Did this prompt work?

Keep exploring

More in Design