CSS
The language that describes how web pages look: colours, fonts, spacing, layout and animation.
In more detail
CSS stands for Cascading Style Sheets. A stylesheet is a list of rules; each rule has a selector that picks elements and declarations that set properties on them. When several rules set the same property, the cascade decides which wins, based on origin, specificity and order.
Examples
In the browser: CSS stands for Cascading Style Sheets. Rules pair a selector, which picks elements, with declarations such as color: red. When several rules target the same element, the cascade decides which value wins.A locator such as .btn-primary breaks after a restyle; getByRole("button") does not.In React you set the class with the className prop; modals often need portals because parent CSS can clip them.Related terms
- HTML — The markup language that describes the structure and meaning of a web page with elements such as <button>, <input> and <h2>.
- CSS cascade — The CSS process that decides which of several competing rules sets a property on an element.
- CSS custom property — A value you name yourself in CSS, such as --color-primary: #2563eb, and use elsewhere with var(--color-primary).
- specificity — The weight the browser gives a CSS selector, used to decide which rule wins when two set the same property.
- CSSOM — The browser's in-memory model of all the CSS rules on a page, built by parsing stylesheets, which it combines with the DOM to work out each element's style.
- CSS selector — A pattern, such as .card, #menu or nav a, that picks which elements a CSS rule applies to or which elements a DOM query returns.
- stylesheet — A file or block of CSS rules that tells the browser how a page's elements should look.
- locator — An object in a test that describes how to find an element on the page, such as “the button named Submit”.
- XPath — A query language for picking parts of an XML or HTML document by their position in the tree.
- CSS animation — Changing an element's styles smoothly over time using @keyframes and the animation property, without JavaScript.
- Tailwind CSS — A CSS framework made of small single-purpose utility classes, such as bg-blue-600 or px-4, that you combine in markup.
- className — The React prop, and DOM property, that sets an element's HTML class attribute.
- stacking context — A group of elements that the browser layers together, so their z-index values only compete with each other and not with the rest of the page.
Taught in
- Token Transformation: Style Dictionary & Multi-Platform Outputs — Design Systems & Component Engineering
- CSS Custom Properties & Dynamic Theming Architecture — Design Systems & Component Engineering
- Tailwind CSS v4 Engine: CSS Variables & Theme Extensions — Design Systems & Component Engineering
- Class Variance Authority: Type-Safe Variant & Prop Orchestration — Design Systems & Component Engineering
- CSS Parsing, The CSSOM And The Render Tree — Frontend Architecture & Web Platform
- Layout, Reflow, Paint And GPU Compositing Layers — Frontend Architecture & Web Platform
- Modern Box Model, Box Sizing, Display Types And Flow Layout — Frontend Architecture & Web Platform
- The Cascade Algorithm: Specificity, Inheritance And Source Order — Frontend Architecture & Web Platform
- CSS Cascade Layers: Taming Specificity Wars with @layer — Frontend Architecture & Web Platform
- End-to-End Testing with Playwright: Multi-Tier Suites — Production Full-Stack Engineering
- Templates vs Layouts: Remounting & Page Transitions — Next.js 15 & Modern App Router Architecture
- Route Groups & Private Folders: Modular Structures — Next.js 15 & Modern App Router Architecture
- Parallel & Intercepting Routes: Modals & Split Views — Next.js 15 & Modern App Router Architecture
- Streaming SSR: Progressive HTML & Chunked Transfers — Next.js 15 & Modern App Router Architecture
- Loading UI: Instant Loading States with loading.tsx — Next.js 15 & Modern App Router Architecture
- Image & Font Optimization: Zero Layout Shift Assets — Next.js 15 & Modern App Router Architecture
- Diffing Algorithm: Element Type Shifts And Subtree Tear Down — React 19 & Modern Component Architecture
- Slot Patterns And Headless UI Architecture in React — React 19 & Modern Component Architecture
- Concurrent Mode: Interruptible Work And Lane Priority — React 19 & Modern Component Architecture
- Error Boundaries: componentDidCatch And Fallback UI Trees — React 19 & Modern Component Architecture
- React Portals: Escaping Stacking Contexts for Modals — React 19 & Modern Component Architecture
- Accessible Headless Primitives: ARIA, Focus, And Keyboard — React 19 & Modern Component Architecture