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:

Today: walls only. And here is the whole trick of HTML in one line:

๐Ÿ’ก The one idea of this lesson HTML is made of LEGO bricks called elements. Each brick looks like this:
<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:

๐Ÿ› ๏ธ Build it (the fun part)

๐Ÿงช Your mission First, invent your fake product! A candy that never melts? Sneakers with rockets? A game studio? Pick a name โ€” then build its very first page:
  1. Open VS Code (the app you're probably reading this next to!).
  2. In the practice folder, create a new file called myshop.html. The .html ending is important โ€” it tells the computer "I am a web page".
  3. 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>
  4. Save the file (โŒ˜S).
  5. Find myshop.html in 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!

  1. Delete the closing </h1> tag. Save, refresh. What went weird?
  2. Put it back. Now change <h1> and </h1> to <p> and </p>. What changed?
  3. Add a third <p> paragraph about the price of your product.
โš ๏ธ If nothing changes when you refresh You probably forgot to save the file first. Save (โŒ˜S), THEN refresh (โŒ˜R). Every coder on Earth makes this mistake daily.

๐ŸŽฎ Quiz time

No peeking at the notes above โ€” trying to remember is what makes it stick!

๐Ÿ“š Want more?

โญ Best thing to read next MDN: Creating the content โ€” the official beginner guide from Mozilla (the Firefox people). It covers today's lesson with a few extra details. Reading it counts as a lesson block!