| Duration | ~40 min in the lesson + ~30 min homework |
| Prerequisites | Lesson 0.2 — tools installed and Claude Code signed in. |
| Checkpoint | none |
What you will have
The student has a project folder containing a one-page "about me" HTML file that Claude Code created and then changed twice at their request, and can explain what Claude did at each step.
Video
The video for this lesson is not recorded yet.
Prompts used in this lesson
Part 4 — Build the page
I'm starting a course on building websites and want a first simple page to practise on. Create one file called about-me.html in this folder: a single "about me" page. Use these details: my name is Alex Carter, I run Brightside Cleaning, a home-cleaning service, and I am learning to build its website. Done means: the file opens in a browser by double-clicking it and shows a heading with my name, a short paragraph about me, and a list of three things I want to learn in this course (make up sensible ones). Constraints: one file only, with the styling inside the same file. No other files, no installs, nothing loaded from the internet.
Part 5 — Open the page; approve a command
Open about-me.html in my default browser so I can check it. Done means the page is visible in a browser window. Do not change any files.
Part 6 — Two changes
Change about-me.html so it is easier to read and looks more like a business page. Done means: the page has a coloured band at the top with my name in it, the text sits in a centred column that is not too wide, and everything else stays the same. Constraints: edit only about-me.html, keep all the existing text, nothing loaded from the internet.
Add a section at the bottom of about-me.html with the heading "Contact" and one line: "Email: hello@example.com". Done means the new section appears below the list and matches the style of the rest of the page. Edit only about-me.html and change nothing else on the page.
Do along
Pause the video after each part named below and do the step before you continue.
- Pause after Part 2. Run
cd ~,mkdirwith your project name (orbrightside-site),cdinto it, andclaude. Accept the trust question. - Pause after Part 3. Press
Shift+Tabuntil the label under the prompt readsmanual mode on. - Pause after Part 4. Send the first prompt from Part 4. Adapt: your own name and your business from lesson 0.1. Put nothing private on the page.
- Read the permission prompt, then choose Yes.
- Pause after Part 5. Send the "open in my default browser" prompt from Part 5. Read the command before approving.
- Pause after Part 6. Ask for two changes, one at a time, each with a "done means" sentence and the constraint "edit only about-me.html". Use the two from Part 6 or your own. Reload the browser after each.
- Pause after Part 7. Try each once:
/help;Escwhile Claude is answering;/clear;/exit; thenclaude --continue.
Check your work
- Open the project folder in Finder or File Explorer and double-click
about-me.html. Expected: it opens in your browser and shows your name, a paragraph and a list. - Look for your two changes. Expected: both are visible on the page.
- In the project folder, run
claude --continue. Expected: your latest conversation reopens. - Say what a permission prompt shows. Expected: "what Claude is about to do, and to which file or with which command".
Common problems
- Claude created the file without asking. → The session is in auto or accept-edits mode. → Press
Shift+Tabuntil the label saysmanual mode on. The file is fine; carry on. Shift+Tabdoes nothing on Windows. → Some Windows terminals do not pass that key through. → TryAlt+M, or/exitand start withclaude --permission-mode manual.- Claude created extra files or started installing things. → The request left room for it. → Press
Esc, then say: "Stop. I want one file only, about-me.html. Remove anything else you created." claude --continueopens a different conversation. → Sessions are stored per folder. →cdinto the project folder first.- You pressed
Ctrl+Cand Claude Code closed. → With nothing running, pressing it twice exits. → Runclaude --continue. UseEscto interrupt.
Homework
About 30 minutes, after the lesson. No spending, and no later lesson depends on it. Work in a separate folder, so your project folder still holds only about-me.html when lesson 0.4 starts.
A second page, on your own. Run
cd ~,mkdir claude-homework,cd claude-homeworkandclaude, and switch to Manual mode. Write your own prompt, without copying the lesson's, for a one-file page calledservices.htmlthat lists what your business offers. Give it the same four parts as the lesson's. Then ask for two changes, one at a time.- Deliverable:
services.htmlin theclaude-homeworkfolder. - Done when: the page opens in your browser, shows both changes, and the folder contains no other files.
- Deliverable:
A permission log, with one "no". During task 1, write one line for each of three permission prompts: what Claude wanted to do, to which file or with which command, and your answer. Refuse one prompt on purpose, tell Claude what you want instead, and note what it did next.
- Deliverable: three lines in your course notes.
- Done when: each line names an action, a file or command, and your answer, and one answer is "no".
Leave and come back. Type
/exit. Later, or the next day,cdintoclaude-homework, runclaude --continueand ask Claude to say in three sentences what was done in this conversation.- Deliverable: one sentence in your notes: did the summary match what happened?
- Done when: the earlier conversation reopened and your sentence is written.