Weak prompt
Make me a website.
Which kind of website? What should be on it? What should it look like? The AI has to guess everything.
Learn how to communicate with AI so it generates more useful, accurate, and understandable code.
In Class 1 you learned what code is. Now you will learn how to ask for it. A prompt is how you talk to an AI, and small changes to it make a big difference in the code you get back. You will practice by building prompts yourself, not just reading about them.
By the end, you will be able to:
Lesson A
A prompt is the instruction or information you give an AI model. The AI can only work with what you write. If your request is vague, it fills the gaps with guesses, and the result is usually generic: not wrong, but not what you pictured.
Make me a website.
Which kind of website? What should be on it? What should it look like? The AI has to guess everything.
Create a responsive personal portfolio website using HTML and CSS. Include a navigation bar, an About Me section, three project cards, and a footer. Use a dark teal and mint color palette. Explain the important parts of the code.
Lesson B
Strong coding prompts are made from six parts. Select each one to see what it means and an example.
Example
Lesson C
Edit any field and watch your prompt update. It starts with a working example, so you can see how the pieces fit. Everything stays in your browser.
Your prompt
Lesson D
Your first prompt is rarely perfect, and that is normal. Good prompting is a loop:
See how a follow-up request changes the outcome. Switch between the two requests. The results shown are an illustration of what each prompt typically produces.
Lesson E
Everyone makes these. Spot them early and each one has a simple fix.
Mistake: "Make an app."
Fix: "Build a to-do list web page where I can add and delete tasks."
Mistake: "Fix my code." (with nothing pasted)
Fix: Paste your code and the error, and say you are a beginner. Ask what the error means.
Mistake: Asking for a shop, chat, game, and login together.
Fix: Ask for one feature. Get it working, then ask for the next.
Mistake: Getting a framework you have never heard of.
Fix: Say "plain HTML, CSS, and JavaScript only. No libraries."
Mistake: Pasting code straight into your project.
Fix: Run it. Try to break it. Check it against each requirement you wrote.
Mistake: Trusting a confident answer.
Fix: Ask it to explain each part, and ask for a second approach to compare.
Lesson F: Mini challenge
Write a prompt asking an AI to build a simple personal webpage with a heading, a short introduction, three interests, a consistent color scheme, and a responsive layout. You do not need to send it anywhere. The checklist reads your text and ticks items as you cover them. It looks for keywords, so treat it as a guide.
Checklist
Knowledge check
Finished the builder, the challenge, and the quiz? Mark the lesson complete. Progress is saved in this browser only.
Class 2 complete. You can now write prompts that give AI a real chance to help.