New:Embedded & IoT Bootcamp
Tutorial 2 of 44 in series

History of CSS

Understand how CSS evolved

Abhishek Sharma 2026-05-30 Web Development / Frontend / CSS
5%

History of CSS

CSS was first proposed by Håkon Wium Lie in 1994 while working at CERN. Before CSS, web pages were styled with HTML-only attributes like <font color="red">, which was messy and repetitive.

CSS Versions Timeline

Version Year Key Features
CSS1 1996 Fonts, colors, margins, paddings
CSS2 1998 Positioning, z-index, media types
CSS2.1 2004 Bug fixes, wider browser support
CSS3 2011+ Modular: Flexbox, Grid, animations, transitions

CSS3 broke CSS into modules (each versioned independently), allowing the spec to evolve faster.

Before CSS

Demo: HTML Styling Before CSS
HTML
<font color="red" size="5">Big Red Text</font>
<br>
<font color="blue" face="Arial">Blue Arial Text</font>
Live Output Window

With CSS

Demo: Same Page With CSS
HTML
<p class="highlight">Big Red Text</p>
<p class="note">Blue Arial Text</p>
CSS
.highlight {
font-size: 2rem;
color: #ef4444;
font-weight: bold;
}
.note {
color: #3b82f6;
font-family: Arial, sans-serif;
}
Live Output Window

Today, CSS is maintained by the W3C and powers the visual layer of the entire web.

Keep learning

Related tutorials from across the library.

All tutorials
Tutorial2026-05-30

Introduction to CSS

Learn what CSS is and why it matters

Web Development / Frontend / CSS

CSSWeb Development
Tutorial2026-05-30

Adding CSS

Three ways to add CSS to a page

Web Development / Frontend / CSS

CSSWeb Development
Tutorial2026-05-30

CSS Selectors

Target HTML elements with CSS selectors

Web Development / Frontend / CSS

CSSWeb Development