Step 11: Add an Interactive Feature (an AI-made Quiz)
Ask an AI for one part, paste it into Add code (from AI) and test it.
You will need
- An idea for an interactive part (a quiz works well)
- Access to an AI tool your school allows
Check it worked
- The feature works in Preview: every button does something
- It did not change the look of the rest of my page
- I have noted that I used AI, and what I changed
Steps
Watch a step, pause the video, then do it yourself in WebCraft. These are the same steps as the video.
Ask the AI
Ask an AI such as Gemini for a quiz. Be clear: say what it's about, how many questions, and ask for HTML, CSS and JavaScript in one part, with no external links.

Copy the code
Copy the code from the answer. Don't worry about the extra chat text. WebCraft will tidy it.

Add code (from AI)
In the Add tab, drag in the Add code (from AI) block, and paste the code into the box.

Tidy and add
Click Tidy and add. WebCraft removes the parts that would break your page, and lists them under What I tidied.

Test it in Preview
Now test it in Preview. Answer every question and check the score works.

Use AI safely
Use AI safely: never share personal details, check everything it makes, and say in your project that you used it.

Project Log evidence
- Your prompt, the What I tidied list and a screenshot of the working feature
- A sentence crediting the AI
Common problems
- The quiz buttons do nothing in Design view
- Scripts run in Preview and on your finished site, not in Design view.
- It stopped working after tidying
- It may have used a library from the internet. Ask the AI for a version with no external libraries.