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

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

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

Example: Cell Words Flip Deck, a twelve-card cell biology vocabulary infographic.

Click or tap any card to flip it from the term and emoji to a definition and a real-world example. Shuffle deals the cards in a new order, Reveal all flips every card at once and Reset starts over. Use the arrow keys to move between cards, Enter or Space to flip, and S to shuffle. The progress bar fills as you see each card.

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

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