CSS Fundamentals

CSS controls visual design. You use it to style typography, spacing, colors, layout systems, animations, and responsive behavior across devices.

Selectors Layouts Responsive UI

Key Concepts

Selectors and Specificity

Choose elements precisely and understand which rules override others.

Box Model

Every element has content, padding, border, and margin that affect layout size.

Flexbox and Grid

Use modern layout tools to align, distribute, and arrange content responsively.

CSS Quiz

Answer all questions and click submit to see your score.

1. Which property changes text color?

2. Which layout system is one-dimensional?

3. In the box model, what sits outside the border?

4. Which media query target is best for small screens?

5. Which unit scales based on root font size?