Build a Printable Algebra Formula Cheat Sheet in a Single HTML File

A one-page algebra cheat sheet with color-coded rule cards, a worked example under each rule, topic filters and a print layout that fits one A4 or Letter page.

The prompt

Prompt
Act as a math teacher who also designs clean, print-ready web pages. Build a single HTML page called "Algebra Pocket Guide", a one-page cheat sheet of core algebra formulas and rules. Organize it into six color-coded groups: Exponents, Polynomials and Factoring, Linear Equations and Lines, Quadratics, Logarithms, and Inequalities and Absolute Value. Give each group 4 or 5 rule cards. Each card shows a short rule name, the formula with proper superscripts and subscripts, and a one-line worked example with real numbers that is mathematically correct. Rules: 1) Each group gets its own accent color for its top border, badge and card edge, with a light tint background and dark text for readable contrast. 2) Add filter buttons for All and for each group, a Hide examples toggle, a Print button and a Reset button, all keyboard focusable with visible focus rings. 3) Clicking a card, or pressing Enter or Space on it, marks it as known with a checkmark, and a counter shows how many rules are known. 4) Use a responsive grid that works from 360px to 1280px wide. 5) Add a print stylesheet that hides the controls, always shows every group and example, uses three columns with small type, keeps cards from splitting, preserves colors and fits one A4 or Letter page. 6) Keep hover motion subtle and turn it off under prefers-reduced-motion. 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: Algebra Pocket Guide, a printable one-page formula sheet.

Six color-coded groups hold 27 rule cards, each with a formula and a worked example. Use the topic chips to focus on one group. Click a card, or press Enter on it, to mark it as known and watch the counter rise. Hide examples lets you quiz yourself. Print / Save PDF opens the browser's print dialog, which lays everything out in three columns on one A4 or Letter page.

Written by AI from this prompt. Your results will vary.

Tips and common edits

Why this works

  • Naming every group and requiring real-number examples keeps the sheet accurate and complete, with no vague filler.
  • The print rules spell out the columns, hidden controls and kept colors, so the one-page fit works on the first try.
  • Interactive extras like filters, self-quiz and known-rule checks add value on screen without breaking the print layout.

Paste into ChatGPT, Claude or Gemini, save the code as an .html file and open it in a browser, or use the chat's preview or canvas. Use the browser's Print dialog to print it or save it as a one-page PDF.

Common edits

  • Swap the six groups for another subject, such as geometry, trigonometry or calculus derivatives, and keep the same card structure.
  • Change the accent colors to your school's palette, or add a name and date line to the header for handouts.

Prompt details

By
Prompts-GPT editors
Published

Did this prompt work?

Keep exploring

More in Infographics