Week 1 — HTML & How the Web Works · ~15 min
Using AI in this course: the rules
Free previewWhy this lesson comes first
AI tools like ChatGPT, Claude, Gemini and GitHub Copilot can now write a working web page in seconds. That is real, and pretending otherwise would waste your money. But it changes what employers pay for. Typing out a component is no longer the hard part. The people getting hired can:
- say precisely what to build, so that a person or a model can build it right,
- tell whether the code is correct, accessible and secure, even when they didn't write it,
- fix it when it breaks in production, where no chatbot can see your users,
- and take responsibility for what ships.
You can only judge code you could have written yourself. So this course uses AI in three stages.
The three stages
| Stage | Weeks | What AI may do | What you must do |
|---|---|---|---|
| Foundations | 1–5 | Explain concepts and error messages. Act as a tutor. | Write every line of HTML, CSS and JavaScript yourself. |
| Pair | 6–11 | Draft components, suggest fixes, generate test data. | Read every line, test it, and be able to explain it in review. |
| Lead | 12 (capstone) | Anything a teammate could do. | Own the result and defend every decision live. |
In Weeks 1–5 it is fine to paste an error and ask "what does this mean?". It is not fine to paste the assignment and submit the answer. You would pass this week and fail Week 6, because the review gets harder from there.
Rule 1: Disclose your AI use
Every project you submit includes an AI-use note. There is a box for it on the submission form:
AI use: asked Claude to explain why my flexbox items overflowed
What I checked: tested at 320px and 1440px in DevTools
What it got wrong: suggested overflow: hidden, which hid the bug instead of fixing it
"No AI used" is a fine answer. Honest disclosure never costs marks. Hidden AI use that we discover is treated as work that isn't yours. That is the same standard a professional team holds you to.
Rule 2: Never paste these into an AI tool
- Passwords, API keys,
.envfiles, tokens of any kind. - A client's or employer's private code, unless their policy says you may.
- Real people's data: names with phone numbers, emails, BVN, NIN, card details, addresses.
Under the Nigeria Data Protection Act 2023 (NDPA), personal data about other people may only be processed for a lawful reason and kept secure. Pasting a customer list into a public chatbot sends it to a third party, usually abroad, without a lawful reason. Many employers also ban it in their contracts. When you need realistic data, make it up.
Rule 3: Verify before you trust
AI is often confidently wrong. In web development that usually looks like:
- APIs that don't exist, or that were removed two versions ago (Next.js moves fast; Week 9 deals with this),
- npm packages with plausible names that don't exist, or worse, that an attacker registered,
- code that works but breaks accessibility (no labels, divs as buttons) or security (
innerHTMLwith user input).
Check against the official docs (MDN, react.dev, nextjs.org), run it, and test it at different screen sizes.
Rule 4: You own what you ship
"The AI wrote it" is never an answer in code review, in a job, or to a client whose site leaked data. If your name is on the commit, it's your code.
What stays valuable
As AI writes more code, these skills matter more: semantic HTML and accessibility, reading other people's code, debugging, security basics, testing, and explaining technical choices to non-technical people. Those are the spine of this course.
Try it now
Write your first AI-use note for any AI use so far, even if it's "AI use: none". Keep a file called AI-NOTES.md in your course folder and add to it every week. By Week 12 it doubles as evidence, for an employer, of how you work with AI.
Sign in to track your progress.