Learn HTML ๐ฐ
Five tiny lessons. Each one has a grown-up explanation, a kid-simple version, and a game to earn stars.
1 ยท Tags are like lunchboxes ๐ท๏ธ
HTML is made of tags. A tag tells the browser what something is: a heading, a paragraph, a picture.
Most tags come in pairs: an opening tag and a closing tag with a slash /.
Whatever goes between them is the content.
<h1>Hi Nia!</h1> <p>You are a <strong>superstar</strong>.</p>
๐ง Kid version: A tag is a lunchbox. You open it, put your sandwich inside, and close it. If you forget to close it, your lunch falls out!
๐ฎ Game: Which tag closes this lunchbox? <h1>Hi Nia! ____
2 ยท Head vs. Body ๐ง ๐
Every page has two parts. The <head> holds information about the page: its title in the browser tab,
its character set, and links to files like the stylesheet. You don't see it on the page itself.
The <body> holds everything you actually see: headings, paragraphs, pictures, links, menus.
<html> <head> โ thinking stuff (title, styles.css) </head> <body> โ showing stuff (words, pictures) </body> </html>
๐ง Kid version: Your head is where you think: your name, what outfit to wear. Your body is what people see when you dance!
๐ฎ Game: Tap a tag, then tap the box it belongs in. (+2 โญ)
๐ง <head>
๐ <body>
3 ยท Pictures need words ๐ผ๏ธ
The <img> tag brings a picture into the page. It has no closing tag. It needs two attributes:
src (where the picture file is) and alt (words that describe it).
Alt text is read aloud by screen readers and shows up if the picture can't load.
<img src="img/unicorn.png" alt="A pink unicorn with a rainbow mane">
๐ง Kid version: src tells the computer where the picture lives. alt tells a friend who can't see it what the picture is.
๐ฎ Game: Which one correctly shows a unicorn picture?
4 ยท Links are magic doors ๐๐ช
A link uses the <a> tag. The href attribute is the address of the page to open.
If the page is in the same folder, the address is just its file name. On GitHub Pages, file names are
case-sensitive, so Spokane.html and spokane.html are different files.
<a href="rewards.html">See my rewards</a>
๐ง Kid version: A link is a magic door. The href is the name written on the door. Spell it exactly right, or the door won't open!
๐ฎ Game: The file is named spokane.html. Which door opens?
Try it for real: this is a magic door to the Rewards page.
5 ยท One closet of outfits ๐จ๐
Instead of styling every page separately, put all your styles in one file, styles.css, and link it in the
<head> of every page. Change a color in that one file and every page that links to it changes.
That's how a site keeps one brand.
<link rel="stylesheet" href="styles.css"> /* inside styles.css */ .bar { background: #ff6fb5; }
๐ง Kid version: All your dolls share one closet. Pick a new color dress in the closet, and every doll wears it!
๐ฎ Game: Pick a color for the "closet" and watch all three pages change.
Home page
Lessons page
Rewards page