🌐CSS Framework
Also known as CSS Library, UI Framework (CSS), Front-End Framework (CSS)
A set of ready CSS styles. You use them by class name, so you write less CSS.
Think of it like
It is like a box of ready-made Lego parts. You build fast, with pieces that fit.
Example
Emma needs an admin page by Friday. She adds a CSS framework, uses its grid and button classes, and spends her time on the app.
Why it matters
It saves days of styling and gives a page a tidy, tested look. Many sites start with one.
Definition
Example code
html
<button class="btn btn-primary">Save</button>Common mistake
Key takeaways
- 1Use by class. Add class names to your HTML.
- 2Tested parts. The parts work on many screens.
- 3Less to write. You style the rare cases only.