Ibnovate Course 1 · The Young Builders
⏱ 60 minLive session

Session 20 — Make It Yours

Duration: 60 min · Format: live online

What you'll learn: by the end, you can write simple CSS rules to change colours, fonts, backgrounds, and spacing, turning plain HTML into a page that looks like yours.

Soft skill focus — Creativity

Today you'll also grow Creativity. CSS is where the same plain page becomes uniquely yours — your colours, your fonts, your style choices.

Try this: don't copy one "right" colour scheme — pick colours and fonts that feel like you, and be ready to say why you chose them.

Think about: What choice did you make today that made the page feel like yours?

What you'll need


Hook

Picture a plain black-and-white HTML page. Now imagine a few lines of CSS make it burst into colour. Think about:

Here's the big idea: the paint and style is called CSS, and today you'll decorate the page you built last time.


Teach — What is CSS? Colours and fonts

Here are the key words:

Use this diagram to see how HTML gives the plain structure while CSS adds the colour, fonts, and style on top:

Side-by-side diagram: on the left, a plain black-and-white web page built from HTML showing its structure; on the right, the same page after CSS is added, now with colour, a chosen font, a background, and spacing that make it look styled

Type this in CodePen (in the CSS box):

h1 {
  color: teal;
}

Here's each part: h1 is which tag to style, color is the property, teal is the value. The ; ends the line and { } hold the rules.

⚠ Watch for the #1 CSS mistake: forgetting the semicolon ; at the end of a line, or the curly braces { }. If nothing changes, check those first.

Add a font and colour for paragraphs:

h1 {
  color: teal;
}
p {
  color: darkslategray;
  font-family: Arial;
}

Quick question: what do you think changes if you write color: hotpink; instead? (Answer: the text turns hot pink — try it.)


Teach — Backgrounds and spacing

You can colour the whole page background and add space so things aren't squashed together. The body selector styles the whole page.

Type this in CodePen:

body {
  background-color: lightyellow;
  text-align: center;
}

Notice: background-color paints behind everything; text-align: center; pulls the text to the middle.

Now add spacing so it breathes:

body {
  background-color: lightyellow;
  text-align: center;
  padding: 20px;
}
h1 {
  color: teal;
  margin-bottom: 10px;
}

Here are the two spacing words:

⚠ Watch for: spelling. It's background-color (with the dash and the American spelling color), not "background colour." A tiny typo means the rule is ignored.

Quick question: what's the difference between padding and margin? (Answer: padding is space inside the box; margin is space outside it.)


Activity — Style your page

Make it yours (≈20 min). Reopen the page you built in Session 19 (or paste the starter page) into a Pen and add CSS. Your styled page must include at least four of these:

  1. A text colour for the heading (color).
  2. A background colour for the page (background-color).
  3. A font for the paragraphs (font-family).
  4. Centered text somewhere (text-align: center;).
  5. Some spacing (padding or margin).

If a rule doesn't work, check for a missing brace or semicolon.

Remember: same HTML as last week, but now it looks like yours. That's the power of CSS.


Check yourself

Try these — answers are after the arrow.

  1. What is the job of CSS? → It controls how the page looks (colours, fonts, spacing) — the "paint," not the bricks.
  2. What is missing here: h1 { color: red } → The semicolon after red: h1 { color: red; }.
  3. What's the difference between padding and margin?padding is space inside a box; margin is space outside it, pushing other things away.

Wrap-up


Tips & extra challenges

.special {
  color: white;
  background-color: purple;
  padding: 10px;
}

See if you can explain why the dot . is needed before special in the CSS (it means "the thing with this class"). Then add a border:

.special {
  border: 3px solid gold;
}

Vocabulary

Term Meaning
CSS The code that styles how a page looks
Rule One instruction: selector { property: value; }
Selector What you're styling, like h1 or body
Property What you're changing, like color
Value What you set it to, like teal
Background The colour or fill behind the content
Padding Space inside a box, around the content
Margin Space outside a box, pushing others away

Resources

Practice set

Practise on your own. Answers are after the arrow.

  1. What do the letters CSS stand for, and what is it for?Cascading Style Sheets — it controls how a web page looks.
  2. Name the three parts of this rule: p { color: blue; }Selector p, property color, value blue.
  3. Write a CSS rule that makes all <h1> headings the colour orange.h1 { color: orange; }
  4. Write a rule that gives the whole page a skyblue background.body { background-color: skyblue; }
  5. You wrote p { color: green } and nothing happened after you added more lines. What's likely wrong? → The semicolon is missing after green: p { color: green; }.
  6. Which property adds space inside a box, and which adds space outside it?padding is inside; margin is outside.

Going deeper (optional)

Common mistakes & fixes

If it's not working, check these common mix-ups:

What's next

Session 21 — Build & Share Your Site: you'll combine HTML and CSS into a fun multi-section page about yourself or a topic you love, then present it — the unit's build project.

Ibnovate · Build · Innovate
Type to search · Esc to close
Welcome back
Sign in to continue building.
Accounts are created by Ibnovate — ask your instructor for your login.
🔒