Build Your First Website · Lesson 3 of 4
CSS: colors, fonts, and style
CSS is a list of style instructions. It does not change the words. It changes how they look — the colors, the font, and the background.
Big idea
HTML names the parts. CSS dresses them. The same labels can wear many looks, the way the same story can be printed in a different color of ink.
What CSS can change
- Color — a blue heading, a green word, a dark or light background.
- Font — bigger or smaller type, or a slightly different letter shape.
- Spacing — how much room sits around a heading or a picture.
A tiny style instruction might say “make the heading blue,” written in CSS like this:
h1 {
color: #2f6c98;
}
You do not need to memorize the punctuation yet. The idea is enough: pick a part (the heading), then say how it should look.
Style the Bright Pond page
Pick a heading color, a background, and a font size. The preview changes right away. When you like the look, tap That’s my look. Nothing is saved or sent.
Bright Pond
A quiet little pond on a made-up trail.
Heading color
Background
Title size
Try a color, a background, and a size. Then tap That’s my look.
Quick check
1. CSS is for…
2. If you change only the CSS…
3. Which of these is a style choice?
Talk about it with a grown-up
- Can we find two pages with the same kind of information but a very different look?
- Which heading color in the activity felt easiest to read?
- If we made a page for Oakside Club, what colors would feel like a club in the woods?