Module One: Introduction to Claude AI for Web Development โ Your Coding Assistant
Welcome, young builder! Have you ever wanted to create a website but didn't know how to code? Or maybe you know a little coding but wish you had a helper. This course is for you! We will learn how to use Claude AI โ a smart computer friend โ to build websites and web apps. Claude can write code, fix errors, and even explain how things work. In this first module, we will start from the very beginning. We will learn what Claude is, how it helps with web development, and how to set it up. No scary words โ just fun and simple learning. Let's go!
After completing this module, you will be able to:
Ada's First Website
Ada was 12 years old and loved drawing. She wanted to put her drawings online so her grandmother in another city could see them. But she didn't know how to code. Her big brother said, "Ada, try Claude Code โ it's like a robot that writes code for you." Ada sat at the computer, opened the terminal (a black screen with text), and typed: "claude". Then she asked: "Build a simple page to show my drawings." In seconds, Claude created a beautiful HTML page. Ada added her pictures and shared the link with her grandmother. She was so happy! Claude helped her build her dream website.
Definition: Claude is an Artificial Intelligence (AI) โ a smart computer program โ made by a company called Anthropic. It can understand and write text like a human.
Why it's important: Claude is one of the smartest AIs. It can help us with many things, including building websites.
Simple explanation: Think of Claude as a super-smart friend who lives in the computer and can write code, answer questions, and solve problems.
Real-life example: A developer uses Claude to write a JavaScript function.
School example: A student uses Claude to explain a coding concept.
Home example: A parent uses Claude to build a family website.
Nigerian example: A Lagos startup uses Claude to build their company website.
Illustration:
+------------------+ +-------------------+
| You (user) | ---> | CLAUDE AI |
| (ask a question | | (smart helper) |
| or give task) | | (writes code, |
+------------------+ | explains, etc.) |
+-------------------+
Mini summary: Claude is a smart AI that helps us with tasks like coding.
Definition: Web development is the process of building websites and web applications that people can see in their browsers (like Chrome or Firefox).
Why it's important: Almost every business, school, and person uses websites โ it's a very valuable skill.
Simple explanation: It's like building a house, but instead of bricks, we use code. The house is the website.
Real-life example: A developer builds an online shop.
School example: A student builds a page for a class project.
Home example: A parent builds a site for their small business.
Nigerian example: A Nigerian company builds a website to sell products.
Illustration:
Web Development = Building websites +---------------------------+ | Website: example.com | | +---------------------+ | | | HTML (structure) | | | | CSS (style) | | | | JavaScript (action)| | | +---------------------+ | +---------------------------+
Mini summary: Web development is building websites and apps for the internet.
Definition: Claude can help write code, fix errors, explain how code works, and even create whole websites from your description.
Why it's important: It saves time and helps you learn by showing you how things are done.
Simple explanation: It's like having a coding teacher sitting next to you, writing code with you.
Real-life example: A developer asks Claude: "Write a button that changes colour when clicked."
School example: A student asks: "Create a simple form for a survey."
Home example: A parent asks: "Build a contact page for my small business."
Nigerian example: A developer in Abuja asks Claude to build a login system.
Illustration:
You: "Build a website for a bakery." Claude: "Here is the code for index.html, style.css, and script.js."
Mini summary: Claude helps write, fix, and explain code.
Definition: The terminal is a window on your computer where you type text commands to control the computer. It doesn't have pictures โ just text.
Why it's important: We use the terminal to start Claude Code and give it commands.
Simple explanation: It's like a secret place where you talk to your computer using words, not clicks.
Real-life example: A developer opens the terminal to install software.
School example: A student opens the terminal to run a program.
Home example: A parent uses the terminal to set up a project.
Nigerian example: A developer in Kano uses the terminal every day.
Illustration:
+------------------------------------------+ | Terminal (black screen with text) | | $ claude | | > Hello! I'm Claude Code. How can I help?| +------------------------------------------+
Mini summary: The terminal is a text window where we type commands.
Definition: Claude Code is a special tool that runs in the terminal and lets Claude help you with coding projects directly in your folders.
Why it's important: It's the main tool we will use in this course!
Simple explanation: It's like Claude moves into your project folder and helps you write code right there.
Real-life example: A developer uses Claude Code to add a new feature to an app.
School example: A student uses Claude Code to build a class project.
Home example: A parent uses Claude Code to create a personal website.
Nigerian example: A developer in Lagos uses Claude Code to build a delivery app.
Illustration:
Project Folder (my-website) +--------------------------+ | index.html | | style.css | | script.js | | [Claude Code is here!] | +--------------------------+
Mini summary: Claude Code is Claude inside your project folder.
Definition: Node.js is a program that lets you run JavaScript outside the browser. Claude Code needs Node.js to work.
Why it's important: You need to install Node.js before you can install Claude Code.
Simple explanation: It's like putting fuel in a car โ you need it to start the engine.
Real-life example: A developer installs Node.js to use many tools.
School example: A student installs Node.js for a project.
Home example: A parent installs Node.js to use Claude Code.
Nigerian example: A developer in Port Harcourt installs Node.js.
Illustration โ Install Node.js:
1. Go to nodejs.org 2. Download the installer for your computer (Windows, Mac, or Linux). 3. Run the installer and follow the steps. 4. Open the terminal and type: node -v 5. If you see a version number, it worked! ๐
Mini summary: Node.js is needed to run Claude Code.
Definition: Installing means putting the Claude Code software on your computer so you can use it.
Why it's important: You can't use Claude Code without installing it.
Simple explanation: Like installing a game so you can play it.
Real-life example: A developer runs "npm install -g @anthropic-ai/claude-code".
School example: A student installs it on a school computer.
Home example: A parent installs it on the family computer.
Nigerian example: A developer in Abuja installs Claude Code.
Illustration โ Installation Steps:
Step 1: Open Terminal. Step 2: Type: npm install -g @anthropic-ai/claude-code Step 3: Press Enter and wait for it to finish. Step 4: Type: claude Step 5: If you see "Hello!", it worked! ๐
Mini summary: Install Claude Code with a single command in the terminal.
Definition: A session is when you open Claude Code and start working with it.
Why it's important: This is where the magic happens!
Simple explanation: Like opening a book and starting to read.
Real-life example: A developer types "claude" in the terminal.
School example: A student opens Claude Code to start a project.
Home example: A parent opens Claude Code to build a website.
Nigerian example: A developer in Kano starts a Claude Code session.
Illustration โ Starting Claude Code:
$ cd my-project (go to your project folder) $ claude (start Claude Code) Claude: Hello! I'm Claude Code. I'm in your project folder. Claude: What would you like to build today?
Mini summary: Start Claude Code by typing "claude" in the terminal.
Definition: This is a way of working with Claude: first explore (understand the project), then plan (decide what to do), then code (build it).
Why it's important: It gives you better results and fewer mistakes.
Simple explanation: Like drawing a map before going on a trip.
Real-life example: A developer asks Claude to explore the code, then plan a new feature, then write it.
School example: A student explores a project, plans their part, and codes it.
Home example: A parent explores a template, plans changes, and edits it.
Nigerian example: A team in Abuja explores their codebase, plans a new feature, and codes it.
Illustration โ The Workflow:
Explore ๐ ---> Plan ๐ ---> Code ๐ป (understand) (decide) (build)
Mini summary: Explore, Plan, Code โ the best way to work with Claude.
Definition: A web page is a document you see in a browser. It has HTML for structure, CSS for style, and sometimes JavaScript for actions.
Why it's important: It's the building block of all websites!
Simple explanation: Like a page in a book, but on the internet.
Real-life example: A company builds a homepage.
School example: A student creates a page about their favourite animal.
Home example: A parent creates a page for their business.
Nigerian example: A restaurant in Lagos creates a page with their menu.
Illustration โ Web Page Prompt:
You: "Create a simple HTML page for a bakery with a welcome message and a list of breads." Claude: (creates index.html with the code)
Mini summary: Claude can create a complete web page from your description.
Definition: HTML (HyperText Markup Language) is the code that gives a web page its structure โ headings, paragraphs, images, links, etc.
Why it's important: Every website uses HTML.
Simple explanation: Like the skeleton of a body โ it holds everything together.
Real-life example: An HTML tag <h1> makes a big heading.
School example: A student writes <p>This is a paragraph.</p>
Home example: A parent writes <img src="photo.jpg"> to show an image.
Nigerian example: A developer uses HTML to build a page.
Illustration โ Simple HTML:
<!DOCTYPE html>
<html>
<head>
<title>My Bakery</title>
</head>
<body>
<h1>Welcome to My Bakery!</h1>
<p>We sell fresh bread.</p>
</body>
</html>
Mini summary: HTML is the structure of a web page.
Definition: CSS (Cascading Style Sheets) is the code that gives a web page its colours, fonts, layout, and design.
Why it's important: It makes web pages look beautiful.
Simple explanation: Like clothing for the skeleton โ it makes it look good.
Real-life example: CSS changes the background colour to blue.
School example: A student changes the font size to 20px.
Home example: A parent makes the text bold.
Nigerian example: A developer uses CSS to style a Nigerian flag on a page.
Illustration โ Simple CSS:
body {
background-}
h1 {
text-align: center;
}
Mini summary: CSS is the style of a web page.
Definition: JavaScript is the code that makes web pages interactive โ like buttons that do things, forms that submit, and animations.
Why it's important: It brings websites to life!
Simple explanation: Like the muscles that make the body move.
Real-life example: A button that says "Click Me" and shows a message.
School example: A student writes a script that counts clicks.
Home example: A parent writes a script that validates a form.
Nigerian example: A developer uses JavaScript to build a shopping cart.
Illustration โ Simple JavaScript:
<button>Click Me</button>
<script>
function sayHello() {
alert('Welcome!');
}
</script>
Mini summary: JavaScript adds actions to a web page.
Definition: Safety means protecting your computer and data. Ethics means using AI in a good and honest way.
Why it's important: We must use AI responsibly.
Simple explanation: Like not telling a stranger your password.
Real-life example: Don't share your API keys with Claude.
School example: Use Claude to learn, not to cheat.
Home example: Don't ask Claude to do illegal things.
Nigerian example: A company doesn't upload customer data to Claude.
Illustration โ Safety Rules:
โ DO: Review Claude's code. โ DO: Ask Claude to explain code. โ DON'T: Share passwords or secrets. โ DON'T: Trust code without testing. โ DON'T: Use Claude to cheat.
Mini summary: Use Claude safely and honestly.
In this module, we learned:
How to create a web page with Claude Code:
cd my-project (go to your project folder).claude (start Claude Code).Start with a live demo โ show students how to open the terminal and install Claude Code. Walk them through creating their first page. Emphasise the explore-plan-code workflow. Use Nigerian examples to make it relatable. Encourage questions and exploration.
Help your child set up Claude Code. Start with small projects. Sit with them and review Claude's code together. Ask questions like "What does this line do?" and "Can we change the colour?" Encourage curiosity.
+----------------------------------+ | Website | | +-----------------------------+ | | | HTML (Structure) | | | | CSS (Style) | | | | JavaScript (Action) | | | +-----------------------------+ | | Claude Code helps with all 3! | +----------------------------------+
| Tool | With Claude Code | Without Claude Code |
|---|---|---|
| Writing HTML | Claude writes it | You type everything |
| Styling with CSS | Claude suggests styles | You design manually |
| Adding JavaScript | Claude writes functions | You code yourself |
| Fixing errors | Claude suggests fixes | You debug alone |
| Time to build | Minutes to hours | Hours to days |
You type a request ---> Claude Code ---> Creates/edits files
("Build a login") (in your project) (index.html, style.css)
| Language | What It Does | Example |
|---|---|---|
| HTML | Structure | <h1>Hello</h1> |
| CSS | Style | |
| JavaScript | Action | alert('Hi!'); |
In this first module, we have taken our first steps into the world of web development with Claude AI. We learned what Claude is and how it can help us build websites. We set up our computer with Node.js and Claude Code. We created our very first web page. We also learned the explore-plan-code workflow and the basics of HTML, CSS, and JavaScript. We discussed safety and ethics. You now have the foundation to build amazing things with Claude Code!
| Term | Definition |
|---|---|
| Claude Code | A) Structure of a web page |
| HTML | B) Style of a web page |
| CSS | C) Actions on a web page |
| JavaScript | D) Coding assistant in terminal |
| Terminal | E) Text window for commands |
Answers: Claude Code-D, HTML-A, CSS-B, JavaScript-C, Terminal-E
Scenario 1: You want to build a simple website for your school club.
Task: Write a prompt to Claude Code to create the site.
Answer: "Create a simple HTML page for our school club with a welcome message and a list of club activities."
Scenario 2: You see an error in your code and don't know how to fix it.
Task: Write a prompt to Claude Code for help.
Answer: "I have this error: 'Cannot read property of undefined'. Can you help me fix it?"
In groups of three, each person takes one role: prompt writer (writes questions for Claude), code reviewer (checks Claude's code), and presenter (shows the final page). Build a simple page about your school. Present it to the class.
Use Claude Code to create a simple web page about your favourite hobby. Include a heading, a paragraph, and an image. Write down the prompts you used.
Build a simple website for a business of your choice (e.g., a bakery, a school, a shop). Use Claude Code to help. Include a heading, a paragraph, and a list. Share your page with the class.
Write a report on how you used Claude Code to build a simple page. Include:
Ask Claude to create a page with a button that changes colour when clicked. Then, ask it to explain the code line by line. Write down the explanation in your own words.
Fill-in-the-blank: 1. Claude Code, 2. AI, 3. Web development, 4. Terminal, 5. HTML, 6. CSS, 7. JavaScript, 8. Explore, 9. Node.js, 10. review
True/False: 1T, 2F, 3F, 4T, 5F, 6F, 7T, 8F, 9F, 10T
Multiple Choice: 1B, 2A, 3B, 4A, 5A, 6C, 7C, 8A, 9A, 10A, 11A, 12A, 13A, 14A, 15B
Matching: Claude Code-D, HTML-A, CSS-B, JavaScript-C, Terminal-E
In Module Two, we will dive deeper into Claude Code features. We will learn about CLAUDE.md (project memory), MCP (connecting to external data), and skills (reusable instructions). We will also build more complex projects. Get ready to become a Claude Code pro!
๐ Congratulations! You have completed Module One: Introduction to Claude AI for Web Development ๐
You are now ready for Module Two โ Claude Code Features!