stylesheet
A file or block of CSS rules that tells the browser how a page's elements should look.
In more detail
Stylesheets are linked with a link element or written inside a style element. The browser parses them into the CSSOM, and because styles affect what is drawn, stylesheets in the head block rendering until they have loaded.
Related terms
- CSS — The language that describes how web pages look: colours, fonts, spacing, layout and animation.
- 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.
- render-blocking resource — A file, usually a stylesheet in the head or a synchronous script, that the browser must finish loading before it will draw the page.
- link element — The HTML element, usually in the head, that connects the page to another resource such as a stylesheet, a web app manifest or a resource hint.
Taught in
- HTML Parsing, Tokenization And The Document Object Model (DOM) — Frontend Architecture & Web Platform
- CSS Parsing, The CSSOM And The Render Tree — Frontend Architecture & Web Platform
- CSS Cascade Layers: Taming Specificity Wars with @layer — Frontend Architecture & Web Platform