Introduction to CSS & Its Evolution
What CSS is, what it does, and how it evolved from 1996 to 2025.
What is CSS?
CSS (Cascading Style Sheets) describes the presentation of HTML — layout, colours, fonts and spacing.
- Separates style from content — HTML is structure & content, CSS is visual presentation. This keeps code clean and maintainable.
- Applies to many documents — one stylesheet can style thousands of pages: edit once, update everywhere.
- W3C standard — maintained by the World Wide Web Consortium; validate your CSS at
jigsaw.w3.org/css-validatorfor cross-browser consistency.
CSS has been the industry standard since CSS1 in 1996.
CSS Evolution (1996 → 2025)
| Year | Milestone |
|---|---|
| 1996 | CSS1 — basic selectors, fonts, colours, margins |
| 1998 | CSS2 — positioning, z-index, media types |
| 2011 | CSS3 modules — animations, gradients, flexbox |
| 2017 | CSS Grid Layout for page layouts |
| 2022 | @layer cascade layers, container queries |
| 2025 | Nesting, @scope, scroll-driven animations, Houdini |
What Does CSS Do?
| Area | Capabilities |
|---|---|
| Text & fonts | Font family, size, weight; line height, letter spacing; text decoration & transform |
| Layout & sizing | Width, height, min/max; Flexbox & Grid (2025 standard); positioning (static/relative/fixed) |
| Visual effects | Shadows, gradients, opacity; filters & backdrop-blur; clip-path & masks |
| Animation & motion | Keyframe animations; transitions between states; scroll-driven animations (2025) |
Activity — complete the code
Complete the code correctly to mark this lesson as complete automatically.
Complete the CSS rule so it targets every h1 and sets a 2rem font size.
/* A CSS rule = selector + declarations */{color: blue;font-size: ;}