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

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

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

Example: The Inquiry Loop, a scientific method flowchart with a bean-sprouting walkthrough.

Seven step cards run left to right on desktop and stack on phones. Click any card to open its explanation, a checklist and a discussion question. Flip the Worked example switch to see every step applied to a real class experiment, including a bar chart on the Analyze step. Use ← → to move between steps, or press T to switch views.

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

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