CSS
The language that styles web pages.
See it on the 3D treeGoing deeper
Cascading Style Sheets pair selectors with declarations for colour, type, spacing, layout and motion. When rules conflict, the cascade decides by factors including origin, importance, layers, specificity and order, and some properties are inherited by child elements. Custom properties let values be named once and reused.
Why it matters
Understanding what it does easily or awkwardly helps you propose feasible designs and talk precisely with developers.
In practice
You ask for a heading that stays stuck to the top while scrolling, knowing CSS positioning can usually handle it.
Connected terms
- Box ModelThe model CSS uses to size and space elements.
- CSS GridA CSS layout mode for two-dimensional arrangements.
- FlexboxA CSS layout mode for one-dimensional arrangements.
- HTMLHTML supplies the structure that CSS selects and styles.
- Media QueryA CSS feature for applying rules under particular conditions.
- Web DesignCSS controls the visual presentation of pages.