Build a Flip-Card Science Vocabulary Infographic in a Single HTML File
You get a ready-to-open HTML page with twelve cell-biology vocabulary cards that flip to show a definition, a real example and an emoji icon, plus shuffle, reveal-all and keyboard controls.
The prompt
Act as a senior front-end developer and instructional designer who builds accessible classroom infographics.
Build "Cell Words Flip Deck", a single-page vocabulary infographic for a middle-school science unit called "Unit 4: The Living Cell". Show twelve term cards in a responsive grid: Cell, Nucleus, Mitochondrion, Ribosome, Cell Membrane, Cell Wall, Chloroplast, Cytoplasm, Vacuole, DNA, Photosynthesis and Osmosis. The front of each card shows a mini emoji icon, a card number, a small category pill (Structure, Organelle, Molecule or Process) and the term. Clicking, tapping or pressing Enter or Space flips the card to its back, which shows a one-sentence definition and a concrete, real-world example.
Rules:
1. Toolbar with Shuffle (random reorder with a short staggered deal-in animation), Reveal all / Hide all, and Reset, plus a progress bar counting cards seen out of 12.
2. Arrow keys move focus between cards based on the current column count, Home and End jump to first and last, and the S key shuffles.
3. Use a small palette: warm off-white background, dark slate text, teal accent, coral focus ring; a clear type scale and generous spacing.
4. Cards are real buttons with aria-pressed and an aria-label that reads the definition when flipped; add a polite live region for announcements.
5. Use a 3D flip, but under prefers-reduced-motion switch to a quick crossfade and drop the deal animation.
6. Grid fits 360 to 1280px wide; a visible legend explains the controls.
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
- Listing all twelve terms and the exact front/back layout stops the model from inventing filler or skipping cards.
- Making cards real buttons with aria-pressed gives keyboard, touch and screen reader support without extra code.
- Spelling out a reduced-motion crossfade and column-aware arrow keys avoids the two most common flip-card bugs.
Paste the prompt into ChatGPT, Claude or Gemini. Save the returned code as cell-words.html and open it in any browser, or view it in the chat's preview or canvas panel. Swap the terms list to reuse it for any unit.
Common edits
- Replace the twelve terms with vocabulary from another unit, such as ecosystems, forces or the water cycle, keeping the same categories format.
- Add a quiz mode that hides the term on the back and asks students to name it before flipping again.
Prompt details
- By
- Prompts-GPT editors
- Published
Did this prompt work?
Keep exploring
More like this
Build a How a Bill Becomes a Law Branching Flowchart in a Single HTML File
Get a one-file interactive civics flowchart that traces a U.S. bill from introduction to law, showing every point where it can fail or be vetoed, with click-to-expand notes and a text outline.
Build an Animated Water Cycle Step-by-Step Explainer in a Single HTML File
You get one self-contained HTML page with an animated SVG water cycle that walks through five stages, each in one sentence, with next, previous and play controls.
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 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 Course Syllabus Roadmap Infographic with Weekly Deadline Badges
A prompt that produces an interactive one-page syllabus roadmap with week cards, quiz, project and exam badges, grade weights and a clickable detail panel.
Build a Flip-Card Technology Evolution Timeline Infographic in HTML
A complete single-file HTML infographic with six tech-history era cards that flip to Then vs Now comparisons, a progress timeline and a presenter step-through mode.