Cascading Style Sheets (CSS) is the standard language for describing the presentation of documents written in markup languages such as HTML, controlling layout, colour, typography and responsive behaviour. It separates content from presentation, with rules that cascade and inherit according to specificity and source order. Maintained as a family of W3C specifications, CSS is a foundational web technology alongside HTML and JavaScript.

Overview

  • CSS is the presentation layer of the web platform. By decoupling how a document looks from what it contains, it enables a single body of content to be styled consistently across pages, themed, and adapted responsively to different devices and accessibility needs.

Key aspects

  • The cascade, specificity and inheritance that resolve competing rules
  • Box model, flexbox and grid layout systems
  • Responsive design via media queries and fluid units
  • Separation of presentation from semantic markup

Applications

  • Styling and theming of web pages and applications
  • Responsive and adaptive layouts across devices
  • Design systems and component libraries
  • Accessible, readable typography and colour

Provenance