Build a Scientific Method Flowchart Infographic with a Worked Example Toggle
You get a single HTML file with a seven-step scientific method flowchart, clickable detail panels and a switch that shows each step as a real classroom experiment.
The prompt
Act as a front-end developer and science education designer. Build "The Inquiry Loop", a one-page scientific method flowchart infographic for middle school science teachers. Show seven connected step cards: Observe, Question, Hypothesis, Experiment, Analyze, Conclude and Communicate. Add a dashed loop-back note showing that new questions return to Observe. A segmented toggle switches every card and the detail panel between Generic steps and a Worked example. The example asks whether soil temperature changes how fast bean seeds sprout, using trays at 15, 20 and 25 °C.
Rules:
- Clicking or tapping a card opens a detail panel with a plain-language explanation, a 3-item list (a checklist in generic mode, classroom evidence in example mode) and an Ask the class discussion question.
- In example mode, the Analyze step shows an inline SVG bar chart of average days to sprout: 8.4, 5.9 and 4.1.
- Keyboard: left and right arrows move between steps and T switches views. Add Previous and Next buttons under the panel and visible focus rings.
- Layout: cards sit in one row with arrow connectors at 960px and wider, and stack vertically with down arrows on phones. It must fit 360-1280px.
- Palette: warm paper background, dark ink text, a teal accent for generic mode and amber for the example, system fonts, a clear type scale.
- Fade panel changes gently and disable the fade under prefers-reduced-motion. No external files, storage or network.
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 seven steps and the exact experiment data means the model writes real teaching content instead of placeholders.
- One toggle that re-labels every card and panel keeps both views in sync, so teachers can compare the generic step with the example.
- Responsive rules, keyboard keys and the reduced-motion rule are spelled out, so the file works on projectors, tablets and phones.
Paste the prompt into ChatGPT, Claude or Gemini. Save the returned code as inquiry-loop.html and open it in any browser, or view it in the chat's preview or canvas panel. It works offline, so it can go on a classroom projector.
Common edits
- Swap the bean experiment for another investigation, such as paper airplane wing size or dissolving sugar in water at different temperatures.
- Add an eighth step (Research or Peer review), or rewrite the copy for younger students with shorter sentences.
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 a Scientific Method Explainer Infographic With a Worked Plant Experiment
An interactive single-file infographic that walks through the eight steps of the scientific method, pairing each definition with a running bean-seedling light experiment and a live data chart.
Build an Interactive Yes/No Troubleshooting Flowchart Infographic in HTML
A single HTML file that turns a dense Wi-Fi troubleshooting flowchart into a step-by-step yes/no guide with a live branch map, path trail and restart button.
Build a 100-Person Icon Array Demographic Infographic in One HTML File
You get a single HTML file that shows a fictional town as 100 SVG person icons, with tabs for commute, age and housing and an interactive legend that highlights each group.
Build a 12-Week Fitness Progress Tracker Infographic in a Single HTML File
Generates a one-page fitness report with bodyweight and lift line charts, personal-record badges, a streak calendar and an instant kg/lb toggle, all from built-in sample data.
Build a Before-and-After Statistics Infographic With Color-Coded Change Arrows
A single HTML infographic comparing two years across nine metrics, showing old and new values, absolute and percent change, and arrows colored by whether up is good.