History of CSS · Astro Tech Blog

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

VersionYearKey Features
CSS11996Fonts, colors, margins, paddings
CSS21998Positioning, z-index, media types
CSS2.12004Bug fixes, wider browser support
CSS32011+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.