🎯 Learning Objectives

By the end of this lesson, students will understand:


1️⃣ CSS Units

CSS units are used to define the size of elements (width, height, padding, font-size, etc.).

They are divided into two types:

Absolute Units (fixed, do not scale)

Relative Units (scale based on font-size, parent, or viewport)


2️⃣ Absolute Units

1️⃣ px (Pixels)

.box {
  width: 200px;
  height: 150px;
}