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.

You getone complete HTML file in a single code block, then 3 short ideas to extend it.

The prompt

Prompt
Act as a senior front-end developer and science educator. Build "Cell City Explorer", an interactive labeled diagram of a plant cell drawn entirely in inline SVG, where every organelle is a clickable part. Include 11 parts: cell wall, cell membrane, cytoplasm, nucleus, nucleolus, central vacuole, chloroplasts, mitochondria, endoplasmic reticulum, Golgi apparatus and ribosomes. Each part has a plain-language function card with an emoji icon, a one-sentence job description, a city comparison and whether it is found in plants, animals or both.

Rules:
1. Each SVG part is a focusable group with role button. Hover, tap or Tab focus gives it a glowing outline and shows its card. Click or Enter pins the card, and Escape unpins it. Small parts get invisible, larger hit areas.
2. Explore mode shows text labels with white halos and a row of clickable part chips. A Labels toggle button hides the labels.
3. Quiz mode hides labels and chips and asks "Find the ..." for every part in random order. It scores first-try answers and names any wrong pick. After three misses it reveals the answer, and at the end it shows a final score and a Play again button. During the quiz, aria-labels become neutral so they do not give answers away.
4. Use a two-column layout that stacks below 760px, with the SVG scaling from its viewBox.
5. Use a soft green page, white panels and dark, high-contrast text. Turn off transitions under prefers-reduced-motion.
6. Use no external files, storage, alerts or forms.

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 City Explorer, a clickable plant cell diagram.

  • Explore: hover, tap or Tab to any organelle. It glows and a card explains its job in plain words, with a city comparison.
  • Pin and compare: click or press Enter to pin a card, and Esc to unpin it.
  • Labels: turn them off to check your memory.
  • Quiz mode: labels vanish and you must find each of the 11 parts. Your first-try score is counted, and the answer is revealed after three misses.
Written by AI from this prompt. Your results will vary.

Tips and common edits

Why this works

  • Naming all 11 organelles and the content of each card removes guesswork, so the model writes complete, accurate cards on the first try.
  • Requiring invisible hit areas and focusable SVG groups makes tiny parts like ribosomes easy to tap and reachable by keyboard.
  • Neutral aria-labels in quiz mode keep the quiz fair for screen-reader users, while the explore mode still names every part.

Paste the prompt into ChatGPT, Claude or Gemini. Save the returned code as cell-explorer.html and open it in any browser, or view it in the chat's preview or canvas panel.

Common edits

  • Swap in an animal cell: drop the cell wall, chloroplasts and large vacuole, then add centrioles, lysosomes and small vacuoles.
  • Make the quiz harder by asking about function, for example "Which part makes sugar from sunlight?", or by adding a countdown timer.

Prompt details

By
Prompts-GPT editors
Published

Did this prompt work?

Keep exploring

More in Infographics