Lesson 4 of 10

🎨 CSS Basics

🎯 Grades 6–8 ⏱ ~30 minutes 💚 Beginner

What You'll Learn

  • How CSS rules are written: selector, property, value
  • How to use class and id selectors
  • How to style HTML live in the split-pane editor
Quick Check

1. In CSS, what is the selector in p { color: red; }?

Acolor
Bred
Cp

2. How do you write a CSS class selector for a class named "box"?

A#box { }
B.box { }
Cbox { }

3. Which is the recommended way to apply CSS to a real project?

AInline style attributes
BA <style> tag in the body
CAn external .css file linked with <link>

4. ID selectors start with which character?

A.
B#
C@