CSS reset
A small stylesheet loaded first that removes browser default styles and sets sensible base rules such as border-box sizing.
In more detail
Browsers ship their own default styles, which differ slightly. A reset gives every project the same starting point, and in a cascade layer setup it usually lives in the lowest layer.
Related terms
- box-sizing — The CSS property that decides whether width and height measure only the content (content-box) or include padding and border (border-box).
- cascade layer — A named group of CSS rules, declared with @layer, whose priority in the cascade is set by layer order instead of selector specificity.
- user-agent stylesheet — The browser's built-in stylesheet that gives HTML its default look, such as bold headings and blue links.
Taught in
- Modern Box Model, Box Sizing, Display Types And Flow Layout — Frontend Architecture & Web Platform
- CSS Cascade Layers: Taming Specificity Wars with @layer — Frontend Architecture & Web Platform