Before CSS: pages with no shared styling
Proposals with no browser to apply them
The idea of style sheets goes back to the Web’s beginnings. According to Bert Bos, one of the two authors of CSS, Pei Wei’s Viola browser already had its own style language in 1992. In his doctoral thesis on CSS, Håkon Wium Lie lists several proposals published in 1993, including one by Robert Raisch on the www-talk mailing list in June, the first discussion of its kind on that list.
None of them caught on. Lie attributes this first to the lack of support in Mosaic, the graphical browser that popularized the Web from 1993 onwards and offered only limited colour and font options. A style sheet has no effect unless the reader’s software understands it.
Presentation creeps into HTML
Authors were nonetheless demanding control over fonts and colours; Lie quotes a message from Marc Andreessen in early 1994 that voices this frustration. On 13 October 1994, the company that would become Netscape announced the first beta of its browser. It accepted new, purely presentational HTML elements such as CENTER.
Others followed, including the FONT element, which set the typeface, size and colour of a run of text. The result mixed structure and appearance in the same markup:
<h1><font face="Arial" color="navy">Annual report</font></h1>
Changing the colour of every heading on a site meant editing every page. A visually impaired reader who needed high contrast had little way of overriding those choices. And software that read the page aloud or printed it received instructions designed for a screen. The HTML 4.01 specification would eventually deprecate FONT in favour of style sheets.
1994: Håkon Wium Lie’s proposal
Sharing influence
On 10 October 1994, three days before Netscape’s announcement, Håkon Wium Lie, then at CERN, published a working document entitled Cascading HTML style sheets — a proposal. Its abstract set out the goal: provide a simple mapping between HTML elements and presentation hints, and give publishers influence over style without resorting to page description languages.
The key word is cascade. The browser keeps an ordered list of style sheets. The reader’s comes first: they can take full control or hand most of the influence over to the sheets the document points to. Each declaration requests a degree of influence expressed as a percentage; a request of 100% amounts to full control. For a continuous value such as a font size, competing requests are combined as a weighted average.
The proposal went further than what CSS would keep. It allowed conditional rules based on the environment, the age of the document or the height of the screen, and different rules for screen, print or speech synthesis. Lie himself noted that the notation was still verbose and that conflict resolution between general and specific rules had yet to be defined precisely.
Example: a negotiated font size
The proposal gives this line, which requests a size of 20 points for second-level headings with 40% influence:
h2.font.size = 20pt 40%
The following application is a simplified illustration written for this article: the reader’s preference, set here to 14 points, keeps the remaining 60% of influence.
resulting size = 0.40 × 20 pt + 0.60 × 14 pt
= 8 pt + 8.4 pt
= 16.4 pt
The heading adopts neither the author’s choice nor the reader’s, but a compromise. CSS1 would drop these percentages: in the standardized cascade, a single declaration wins for each property, according to precedence rules. The underlying intent, sharing control between author and reader, nevertheless remains at the heart of the language.
From proposal to CSS1
Bert Bos and a declarative syntax
Bert Bos, who was then developing the Argo browser, had written his own style sheet proposal. He joined forces with Lie. Their project was presented at the Chicago Web conference in autumn 1994, then at the Third International World Wide Web Conference in Darmstadt in April 1995, with implementations in Argo and in Arena, Dave Raggett’s experimental browser that served as a testbed. The www-style mailing list, created in May 1995, became the venue for public discussion.
According to Lie, most of CSS was worked out over a few weeks in the summer of 1995, in front of a whiteboard in Sophia Antipolis, where the W3C had a European site. Around eight revisions of the draft appeared in 1995; the December one was declared stable and browser makers were invited to implement it.
The decisive choice was simplicity. At the same time, DSSSL, an ISO standard for formatting SGML documents, was being finalized in 1996 after some ten years of work; it is a full programming language. Bos describes CSS as heading in the opposite direction: a simple, declarative format that an author can write by hand and a browser can apply while the page is still loading.
One rule, one selector, one declaration
CSS1 became a W3C Recommendation on 17 December 1996. Its first example fits on a single line:
H1 { color: blue }
The specification breaks it down: a selector (H1) identifies the elements concerned, and a declaration (color: blue) pairs a property with a value. The heading from the earlier example can now be written once for an entire site:
h1 { font-family: Arial, sans-serif; color: navy }
The markup goes back to <h1>Annual report</h1>. The document describes what the text is; the style sheet, shared by every page, describes how to display it. CSS1 covers fonts, colours and backgrounds, text, box margins, borders and padding, and a few classification properties such as block or inline display.
In February 1997, the W3C set up a working group dedicated to CSS, chaired by Chris Lilley.
The cascade: arbitrating between author and reader
The CSS1 specification is explicit: one of the fundamental features of CSS is that style sheets “cascade”. A single document can receive the browser’s default styles, the reader’s and the author’s. For each property of each element, only one value can be applied.
By default, the author’s style sheet takes precedence over the reader’s. The !important marker lets a declaration be strengthened. CSS1 and CSS2 differ on one specific point:
| Situation |
CSS1 (1996) |
CSS2 (1998) |
| Normal author, normal reader |
Author wins |
Author wins |
Normal author, !important reader |
Reader wins |
Reader wins |
!important author, !important reader |
Author wins |
Reader wins |
The CSS2 specification explicitly flags this as a “semantic change since CSS1”. Take a reader who needs black text and enforces that colour in their personal style sheet:
/* reader's style sheet */
p { color: black !important }
/* author's style sheet */
p { color: silver !important }
Under the CSS1 rules, the author’s light grey text is displayed; under CSS2, the reader’s black text. The 1994 compromise thus took its lasting form: the author designs the presentation, and the reader has the final say when they genuinely need it.
In the CSS1 and CSS2 model, when two declarations of the same origin and importance conflict, the cascade decides by selector specificity, then by order of appearance: the last declaration wins. Cascade layers, which arrived much later, add a criterion that applies before specificity.
A rival at Netscape: JSSS
In August 1996, Netscape submitted a different approach to the W3C: JavaScript-Based Style Sheets, or JSSS. The document’s authors included Lou Montulli and Brendan Eich, creator of Netscape’s scripting language. Styles became properties of objects, manipulated using that language’s syntax:
tags.H1.color = "blue"
The proposal included an order of precedence comparable to the cascade, with the reader’s style sheet and selector specificity. It had the advantage of being programmable, and the drawback of tying presentation to a programming language executed by the browser.
According to Bos, Netscape internally translated CSS style sheets into this model and also allowed authors to write JSSS directly. The W3C continued with CSS, and JSSS was never implemented anywhere else. The episode highlights a defining choice: presentation on the Web rests on a declarative language independent of scripts, whose own story is told in the history of JavaScript.
Partial and divergent implementations
Internet Explorer 3, Navigator 4 and Opera
In August 1996, before the Recommendation was even published, Internet Explorer 3 became the first commercial browser to support CSS. According to Bos, it reliably handled most colour, background, font and text properties, but implemented little of the box model, meaning the margins, borders and padding that determine layout.
Netscape Navigator 4 followed with CSS support of its own, with such gaps that Bos notes many properties were unusable in it. Authors faced two dominant browsers, each applying a different subset of the same language. In November 1998, the Web Standards Project, a group of authors campaigning for standards compliance, published a list of the top ten CSS problems in Internet Explorer.
That same month, Opera 3.5 was released with support for most of CSS1. Lie joined Opera Software in 1999 as chief technology officer.
The rivalry between Netscape and Microsoft, and the mechanism that lets browsers tell legacy pages from standards-compliant ones by their doctype, are covered in the history of web browsers.
Tests that make the gaps visible
A specification describes a behaviour; only a test shows whether a browser follows it. In October 1998, Todd Fahrner created the first “acid test”, a page combining CSS1 rules in such a way that it would only render correctly if all of them were applied. A CSS1 test suite was put together under the direction of Eric Meyer.
The principle was later taken up on a larger scale. On 16 March 2005, the Web Standards Project announced, together with Håkon Wium Lie, by then Opera’s chief technology officer, the development of Acid2, which openly targeted the forthcoming Internet Explorer 7 while serving as a to-do list for every browser maker. Compliance became a public selling point.
CSS2, then CSS 2.1: describing what works
CSS2 became a Recommendation on 12 May 1998, less than eighteen months after CSS1. Among other things, it added box positioning, stacking, table display and style sheets specific to each media type, such as screen, print or speech synthesis: part of what the 1994 proposal intended found its standardized form.
But no browser at the time implemented CSS2 in full, and some of its definitions turned out to be ambiguous or wrong. Authors had a standard far larger than what they could actually use.
CSS 2.1, a snapshot of what interoperates
The working group undertook a revision, CSS 2.1, which became a Recommendation on 7 June 2011. The document presents itself as derived from CSS2 and intended to replace it. It fixes several errors, including the definition of the height and width of absolutely positioned elements, gives more weight to the HTML style attribute and redefines how the clip property is computed. It adds a few features that were already widely implemented and removes parts of CSS2 that browsers had not adopted.
The specification describes itself as a snapshot of the CSS features implemented interoperably at the time of publication. The relationship between standard and software was reversed: the official reference now followed what browsers actually did, rather than describing an ideal language they were expected to catch up with. Thirteen years separate CSS2 from its revision.
Adoption: genuinely separating content and presentation
Proof by example
During the transition years, many sites combined CSS with legacy presentational elements and tables repurposed for layout. In the early 2000s, Dave Shea’s CSS Zen Garden made the separation tangible: a single page, dressed up by dozens of style sheets contributed by designers. The site sums it up: the HTML stays the same, only the external CSS file changes.
The demonstration was an argument in itself. If one document could take on radically different appearances, presentation could be handed over to a shared style sheet, changed without touching the content, and adapted to other contexts.
Many screens, fonts and books
This separation became decisive as screens multiplied. In May 2010, Ethan Marcotte published Responsive Web Design in A List Apart, combining fluid grids, flexible images and media queries, the conditions on screen size that extend the media types of CSS2. The same document could now adapt to a phone as well as a wide screen; this shift is covered in the history of the mobile Web, and its consequences for images in the guide to responsive images.
Fonts show another kind of slowness. According to Bos, for about ten years from 1998, only Internet Explorer implemented downloadable fonts defined in CSS; Netscape offered a separate solution of its own, outside CSS. In May 2008, Microsoft and Monotype submitted their EOT format to the W3C; most browser makers eventually chose to develop a different format, WOFF.
CSS also moved beyond the browser. Bos reports that between 2010 and 2016, the publisher Hachette Livre sold fifty million books produced with CSS: print layout had adopted the language designed for the Web.
CSS3: modules rather than a new version
The end of monolithic versions
After CSS2, the working group split the language into modules: selectors, colour, backgrounds and borders, fonts, layout and so on. Each progresses at its own pace, with its own level. The CSS Snapshot 2024, published by the group in February 2025, puts it this way: CSS does not have versions in the usual sense, but levels; modules that update features from CSS2 start at level 3, and “there is no CSS Level 4”. A module can reach level 4 or beyond, such as CSS Color Level 4, whose notations are explained in the guide to web colour models, without the language as a whole changing its number.
The scale has changed too. According to Bos, the working group had around 15 members in 1999 and around 115 in 2016, by which time CSS comprised more than 60 modules. The 2024 snapshot sets out as the official definition of CSS a core of modules considered stable, from CSS 2.1 and its errata to Selectors Level 3, Media Queries Level 3, CSS Flexible Box Layout and CSS Color Level 4.
Experimenting without locking in mistakes
Splitting the language into modules multiplies new features, and with them the risk of pages coming to depend on a provisional implementation. For years, browsers exposed experimental features under prefixed names such as -webkit- or -moz-. The snapshot now sets stricter rules: a feature remains unstable until its specification reaches Candidate Recommendation, should not be shipped widely before then, and a proprietary extension should only be offered with a prefix. An exception allows the unprefixed version once at least three browsers implement it, their implementations are roughly interoperable and the working group has approved it; once the feature is stable, the prefixed syntax should be removed.
These rules reflect a lesson from the 2000s: an experimental feature adopted by many sites becomes impossible to fix without breaking them.
Grid: a coordinated arrival
Grid layout illustrates the change of method. According to Igalia, the company that led the implementation in the Blink and WebKit engines with funding from Bloomberg from 2013 onwards, CSS Grid Layout shipped in spring 2017 in Chrome 57, Firefox 52, Safari 10.1 and Opera 44, released within a few weeks of one another. Instead of a browser-specific feature that the others catch up with years later, authors had a common layout tool from day one.

Original Bethemesh diagram. Years are evenly spaced, with no time scale.
Interop: measuring compatibility together
Test suites have also become a shared project. Browser makers share the web-platform-tests repository, whose results are published for each browser. In 2022, Apple, Google, Microsoft, Mozilla, Bocoup and Igalia backed Interop 2022, a compatibility benchmark that succeeded Compat 2021. It selected fifteen areas that developers had reported as sources of problems, and scored each browser on the corresponding tests.
Several of these areas concern CSS: grid and subgrid, flexbox, sticky positioning, new colour spaces and colour functions, new viewport-relative units and cascade layers. With @layer, an author can declare the order of precedence of groups of rules, such as a base, components and overrides, without resorting to ever more specific selectors:
@layer base, components;
@layer components {
.button { color: white }
}
Thirty years after the 1994 proposal, the cascade is still a matter of design: the language keeps offering new ways to organize who decides how a page looks.
How standards bodies work, from the W3C to the WHATWG, and the role of tests in achieving compatible implementations are covered in the history of web standards.
What CSS changed
CSS did not deliver identical rendering everywhere, and that was never its aim. It established a different idea: a page is a structured document, and its appearance results from a negotiation between the author, the reader and the capabilities of the device. That approach made possible sites whose look can change without touching the content, reading preferences that are respected, and pages adapted for print or small screens.
The history of CSS also shows how a web language avoids fragmentation. Browser-specific presentational elements and JSSS turned out to be dead ends; CSS survived because it was simple to implement and to write, and because its authors were willing to revise the standard in light of implementations, with CSS 2.1. Modules, rules on experimental features and shared tests extend the same method: evolving the language in steps that every browser can follow.
CSS builds on the foundations of the Web, HTML and HTTP, complementing them rather than replacing them.
Frequently asked questions
Who invented CSS?
Håkon Wium Lie published the first proposal for Cascading HTML Style Sheets on 10 October 1994, while working at CERN. Bert Bos, author of a competing proposal, joined him; together they worked out the syntax and authored the CSS1 Recommendation of 1996. Other style languages for the Web existed earlier, notably in Pei Wei’s Viola browser, but each remained tied to a single program, such as Viola or Argo: none had been adopted jointly by the major browsers.
Why is it called a “cascade”?
Because several style sheets apply to the same document: the browser’s, the reader’s and the author’s. The cascade determines which one wins for each property, based on the rule’s origin, the !important marker and, nowadays, the cascade layer declared with @layer, which comes into play before selector specificity and order of appearance. In the 1994 proposal, it took the form of influence shared out in percentages.
Is there a CSS4?
No. After CSS2, and alongside the revision that would become CSS 2.1, the working group split CSS into modules that each have their own level. “CSS3” refers to the set of level 3 modules that succeeded CSS2, and some modules have reached level 4, such as colour or selectors. The W3C working group publishes snapshots indicating which modules make up the stable definition of the language at a given date.
Why was CSS 2.1 published thirteen years after CSS2?
CSS2, published in 1998, contained ambiguous or incorrect definitions and features that browsers never adopted. Its revision, CSS 2.1, corrects those errors, removes the abandoned features and describes what is implemented interoperably. That work, grounded in implementations and tests, led to a Recommendation in June 2011.
What were prefixes like -webkit- or -moz- for?
They marked an experimental feature specific to one browser engine, pending standardization. Many sites nevertheless used them in production, forcing browsers to keep supporting them. The working group’s current rules limit the shipping of unstable features and call for the prefixed syntax to be removed once the feature is stable.
Does CSS completely separate structure from presentation?
It separates the description of appearance, but a style sheet still depends on the structure it targets: elements, classes, document order. A poorly structured page remains hard to style, and a change in structure can mean revisiting the style sheet. The separation is one of responsibilities, not total independence between the two files.