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

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

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

Example: Two Ways to Divide, a side-by-side mitosis vs meiosis infographic.

Eight stage rows line up mitosis and meiosis, each with an SVG cell showing coral and blue chromosomes, sister chromatids and crossover tips. Click Show differences only (or press D) to fade the identical rows and highlight what changes in yellow. A key-facts table below follows the same toggle. On phones the stage label moves above the two columns.

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

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 in Infographics