Lesson 5 of 18

🎨 CSS Basics

🎯 Grades 9–12 ⏱ ~35 minutes 🟡 Intermediate

What You'll Learn

  • CSS syntax: selectors, properties, and values
  • The cascade, specificity, and inheritance
  • Colors, fonts, backgrounds, and text styling
Quick Check

1. In CSS, what does a class selector look like?

A#hero
B.card
Ch1

2. Which has the highest specificity?

Ap
B.intro
C#hero

3. Which CSS property changes the text color?

Abackground-color
Bcolor
Ctext-style

4. What does a:hover target?

AAll anchor tags always
BAnchor tags when the user mouses over them
CAnchor tags that have been visited