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
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
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 like this
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.
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 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 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.