| 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 open in VS Code, 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. In VS Code, File > Open Folder, make a new folder in your home folder with your project name (or
brightside-site) and open it. Choose Yes, I trust the authors. Open Terminal > New Terminal, check that the line ends with your folder name, and runclaude. Accept the trust question. - Pause after Part 3. Press
Shift+Tabuntil the label under the prompt readsmanual mode on. Run/terminal-setuponce. - 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 (and the VS Code tab, if one opens), then choose Yes in the terminal.
- 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 --continuein the same terminal.
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.
- Quit VS Code and open it again; it reopens your project folder. In a new terminal, 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, and this terminal is in another one. → Open the project folder in VS Code (File > Open Recent) and open a new terminal there.- The terminal will not open, or VS Code says the folder is in Restricted Mode. → You answered no to the trust question. → Click Restricted Mode in the status bar at the bottom of the window (or run Workspaces: Manage Workspace Trust from the Command Palette) and trust the folder, then open the terminal again.
- Shift+Enter sends the message instead of starting a new line. →
/terminal-setuphas not been run. → Run it once, or useCtrl+Jfor a new line. - A Claude Code chat panel opened in VS Code. → The extension that Claude Code installed offers its own panel. → Close it. In this course you always type to Claude in the terminal.
- 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, opened in its own VS Code window (File > New Window, then File > Open Folder), so your project folder still holds only about-me.html when lesson 0.4 starts.
A second page, on your own. In a new VS Code window, open a new folder
claude-homeworkin your home folder, trust it, open a terminal, runclaude, 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, openclaude-homeworkin VS Code (File > Open Recent), open a terminal, 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.