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
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
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 like this
Build a Color-Coded Parts of Speech Grammar Cheat Sheet in One HTML File
A prompt that builds an interactive grammar cheat sheet where every word in the example sentences is colored by part of speech, and hovering or tapping a word explains why it fits that category.
Build a 100-Person Icon Array Demographic Infographic in One HTML File
You get a single HTML file that shows a fictional town as 100 SVG person icons, with tabs for commute, age and housing and an interactive legend that highlights each group.
Build a 12-Week Fitness Progress Tracker Infographic in a Single HTML File
Generates a one-page fitness report with bodyweight and lift line charts, personal-record badges, a streak calendar and an instant kg/lb toggle, all from built-in sample data.
Build a Before-and-After Statistics Infographic With Color-Coded Change Arrows
A single HTML infographic comparing two years across nine metrics, showing old and new values, absolute and percent change, and arrows colored by whether up is good.
Build a Before-During-After Field Trip Checklist Infographic in One HTML File
A ready-to-paste prompt that builds a three-phase field trip checklist with tabbed columns, tickable steps, per-phase counters and an overall progress bar.
Build a Budget Allocation Treemap Infographic in a Single HTML File
You get one HTML file that draws a squarified treemap of a city budget, hides labels on small blocks, and shows a details panel when you tap or click any block.