Build a Mitosis vs Meiosis Comparison Infographic in a Single HTML File
Get a ready-to-open infographic that lines up mitosis and meiosis phase by phase, with SVG cell diagrams and a toggle that highlights only the differences.
You getone complete HTML file in a single code block, then 3 short ideas to extend it.
The prompt
Act as an information designer and front-end developer. Build "Two Ways to Divide", a one-page infographic comparing mitosis and meiosis for biology students. Use parallel stage rows with three columns (stage label, mitosis, meiosis) so each phase lines up: starting cell, interphase, prophase, metaphase, anaphase, telophase and cytokinesis, second division, final result. Every cell gets an inline SVG diagram of a model cell with 2n = 4 chromosomes (two long, two short; coral from the mother, blue from the father) showing sister chromatids, centromeres and crossover tips, plus a caption.
Rules:
1. Add a "Show differences only" switch button with aria-pressed, also toggled by the D key. When on, rows identical in both processes fade and the differing phrases in captions get a yellow highlight.
2. Show a live count such as "6 of 8 stages differ" and add a key-facts section (purpose, location, divisions, crossing over, daughter cells) that the switch also filters.
3. Warm paper background, dark ink text, teal for mitosis, purple for meiosis, system fonts with a clear type scale.
4. Sticky column headers; below 700px the stage label spans full width above the two columns.
5. Add a legend, keyboard-focusable rows, and no transitions under prefers-reduced-motion. No external files or storage.
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 stage row in order forces both columns to align, so the comparison reads straight across without guesswork.
- A fixed 2n = 4 model with set colors keeps the SVG diagrams simple enough for the model to draw correctly the first time.
- Defining the toggle's exact effect (fade same rows, highlight marked phrases) gives a clear, testable interaction.
Paste the prompt into ChatGPT, Claude or Gemini. Save the returned code as mitosis-meiosis.html and open it in any browser, or view it directly in the chat's preview or canvas panel.
Common edits
- Swap the topic: keep the parallel-row layout and toggle for photosynthesis vs respiration, or DNA vs RNA.
- Change the palette or add a print button and a quiz mode that hides captions until a row is clicked.
Prompt details
- By
- Prompts-GPT editors
- Published
Did this prompt work?
Keep exploring
More like this
Build a Classroom Grade Distribution Infographic with Histogram and Quartiles
A single HTML file that turns an inline array of class scores into a histogram with mean and median markers, a box plot, stat cards and a plain-language summary.
Build an Animated Heart Blood Flow Infographic in a Single HTML File
Get a self-contained HTML page where a canvas diagram traces oxygen-poor and oxygen-rich blood through the heart in eight labeled steps, with a speed slider.
Build an Interactive Plant Cell Diagram with Clickable Organelles and a Quiz Mode
A ready-to-paste prompt that produces a single HTML file with a clickable SVG plant cell, plain-language function cards for 11 organelles and a label-free quiz mode.
Build an Interactive Water Cycle Life-Cycle Infographic in One HTML File
Get a single-file circular SVG infographic of the water cycle with animated flowing arrows, clickable stages, a guided tour mode and a reduced-motion fallback.
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 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.