September 29, 2011

CSS Selectors Level 3 standard

The W3CWorld Wide Web Consortium — the international body that maintains core web standards. published Selectors Level 3 as a Recommendation on September 29, 2011 — standardizing `:nth-child`, `:not`, attribute selectors, and pseudo-elements.

What it was for

Cascading Style SheetsSelectors Level 3 was the first major CSSCascading Style Sheets — the language for layout, color, and typography on web pages. module to reach Recommendation status after CSSCascading Style Sheets — the language for layout, color, and typography on web pages. 2.1 — adding structural pseudo-classes, UIUser interface — the parts of software people see and interact with. state selectors (`:checked`, `:disabled`), and combinators that jQuery had popularized in JavaScript. Every modern stylesheet uses its patterns for targeting DOM nodes without extra markup.

Companies

  • W3C

Why it's here

Selectors Level 3 was the first CSS3 module to ship as a finished standard.

Why it mattered

It gave authors precise DOM targeting primitives that powered responsive and component-based CSSCascading Style Sheets — the language for layout, color, and typography on web pages..

What it solved

CSS2 selectors were too limited for dynamic UIs and complex document structures.

Media

  • Cascading Style Sheets
    ImageCascading Style Sheets

    daPhyre (File:CSS3 and HTML5 logos and wordmarks.svg) Elfi (File:CSS3 logo and wordmark.svg) ExE Boss, CC BY 3.0, via Wikimedia Commons

Related