Lesson 1 ยท about 15 minutes
๐ Your First Web Page
Today you build a REAL web page for your fake product โ with your own hands, no AI. By the end you'll know the secret every website is built on.
๐ฌ Watch first (90 seconds)
The big secret
Every website you have ever seen โ YouTube, Roblox, everything โ is made of three things working together, like a house:
- HTML = the walls. It says what's ON the page: headlines, text, pictures, buttons.
- CSS = the paint. It says how it LOOKS: colors, sizes, where things go.
- JavaScript = the electricity. It makes things HAPPEN when you click.
Today: walls only. And here is the whole trick of HTML in one line:
<p>Some words</p>
<p> is the opening tag ("a paragraph starts here"), </p> is the closing tag ("the paragraph ends here" โ see the /?). The browser reads these labels and draws the page.
That's it. That is genuinely how the whole web works. Two bricks are enough for today:
<h1>โ a giant headline<p>โ a paragraph of normal text
๐ ๏ธ Build it (the fun part)
- Open VS Code (the app you're probably reading this next to!).
- In the
practicefolder, create a new file calledmyshop.html. The.htmlending is important โ it tells the computer "I am a web page". - Type this (really type it, don't copy-paste โ your fingers are learning too!), but replace the words with YOUR product:
<h1>Robo Sneakers</h1> <p>The first shoes in the world that tie themselves.</p> <p>Made for kids who are too busy to bend down.</p> - Save the file (โS).
- Find
myshop.htmlin Finder and double-click it โ it opens in your browser. THAT IS YOUR WEB PAGE. You made that! ๐
๐น๏ธ Try it right here โ the lesson checks your code!
Type in the dark box, watch the preview update live, then press Check my code โ to see if you nailed the task.
๐จ Now break it!
The best way to understand code is to break it and watch what happens. Try each experiment, save, and refresh the browser (โR). Predict what will happen BEFORE you refresh!
- Delete the closing
</h1>tag. Save, refresh. What went weird? - Put it back. Now change
<h1>and</h1>to<p>and</p>. What changed? - Add a third
<p>paragraph about the price of your product.
๐ฎ Quiz time
No peeking at the notes above โ trying to remember is what makes it stick!