Lesson 9 ยท about 45 minutes
๐๏ธ The Big Build: Your Landing Page
Today you put EVERYTHING from lessons 1โ8 together into one real landing page for your product. Walls, paint, AND electricity โ the whole house, built by you.
๐ฌ Watch first (90 seconds)
The secret skeleton of every landing page
Here is something wild: almost every landing page on the internet โ for games, sneakers, apps, everything โ has the SAME skeleton. Once you see it, you can never unsee it:
+--------------------------------------+
| HERO ๐ฆธ |
| BIG HEADLINE (your product name) |
| one sentence: why it's awesome |
| [ Buy button ] |
+--------------------------------------+
| FEATURES โญ |
| +--------+ +--------+ +--------+ |
| | card 1 | | card 2 | | card 3 | |
| +--------+ +--------+ +--------+ |
+--------------------------------------+
| FOOTER ๐ฆถ |
| tiny print ยท a small link |
+--------------------------------------+
- HERO at the top: a big headline, ONE sentence that promises something, and a button.
- FEATURES in the middle: 3 little cards in a flex row, each bragging about one thing.
- FOOTER at the bottom: small print and a link.
Level-up: tags with real names
So far we mostly used <div> โ a plain cardboard box with no label. HTML also has boxes with names printed on them:
<header>โ "I'm the top part!" (perfect for the hero)<main>โ "I'm the main stuff!"<section>โ "I'm one chapter of the page!"<footer>โ "I'm the bottom part!"
They work exactly like <div> boxes โ same behavior, same styling. The only difference is the label. Humans can read the structure faster, and AIs love them: AI-generated code is FULL of these tags. Today you start using them like a pro.
๐ ๏ธ Build it (the BIG one)
- In the
practicefolder, create a new file calledlanding.html. (Making files โ Lesson 1!) - Type the full skeleton, with YOUR product name in the title (Lesson 2!):
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Robo Sneakers</title> </head> <body> </body> </html> - Inside
<body>, build the hero. Headlines and paragraphs โ Lesson 1!<header class="hero"> <h1>Robo Sneakers</h1> <p>The first shoes in the world that tie themselves.</p> <button id="buy">Buy now ๐</button> </header> - Under the header, add
<main>with a features section holding a row of three cards (boxes inside boxes โ Lesson 6!):
Write your OWN three features โ what makes your product amazing?<main> <section class="features"> <div class="row"> <div class="card"> <h3>โก Fast</h3> <p>Ties itself in one second.</p> </div> <div class="card"> <h3>๐ Long battery</h3> <p>Runs for a whole month.</p> </div> <div class="card"> <h3>๐ Cool colors</h3> <p>Lights up when you jump.</p> </div> </div> </section> </main> - Under
</main>, add the footer with small print and a link (links โ Lesson 4!):<footer> <p>ยฉ 2026 Robo Sneakers. Made by a real web developer (you).</p> <a href="about.html">About us</a> </footer> - Save and look! Double-click
landing.html. Everything is there... but it's a house with no paint. Time for CSS. - In the
<head>, add a<style>block and paint the basics (fonts and colors โ Lesson 5!):<style> body { font-family: sans-serif; margin: 0; } .hero { text-align: center; background-color: gold; padding: 60px; } </style> - Now the star move: put the cards in a row and dress them up (flex row โ Lesson 7!, padding and border-radius โ Lesson 6!). Add this inside the same
<style>block:
Save and refresh โ WHOA. Three cards, side by side, like a real website..row { display: flex; gap: 20px; justify-content: center; } .card { padding: 20px; border-radius: 12px; background-color: lavender; } footer { text-align: center; font-size: 14px; color: gray; padding: 20px; } - Electricity time! โก Just before
</body>, wire up the buy button (clicks and messages โ Lesson 8!):
(Move the<p id="message"></p> <script> var buyButton = document.getElementById("buy"); buyButton.addEventListener("click", function () { document.getElementById("message").textContent = "๐ Order received! Your Robo Sneakers are on the way!"; }); </script><p id="message"></p>inside the hero, right under the button, if you want the message to appear there.) - Save. Refresh. Click the button. If a message pops up โ you just built a complete landing page from nothing. Walls, paint, electricity. ๐ โจ
๐น๏ธ Try it right here โ the lesson checks your code!
Build a mini version of the landing page in the box below. One heads-up: for safety, scripts don't run in the preview box (it's a sandbox โ a padded playroom). So skip the button wiring here, and test your button in your REAL landing.html instead.
๐ Finish line checklist
Open your real landing.html in the browser and check each one yourself:
- โ
The browser tab shows your product name (that's your
<title>working). - โ The 3 feature cards sit side by side in a row, not stacked.
- โ Clicking the Buy button makes a message appear.
- โ
The page uses
<header>,<main>, and<footer>โ real name-tags, not just divs.
๐ฎ Quiz time
No peeking at the notes above โ trying to remember is what makes it stick!
๐ Want more?
<header>, <main>, <section>, <footer> and friends. Reading it counts as a lesson block!