CSS3 & Modern Layouts (50 Qs)•Part 1: Basic & Foundational Concepts (Junior / Entry-Level)
What is a CSS Reset vs. Normalize.css vs. Modern Resets?
junior LevelcssBasic
In Simple Words:
Different browsers (Chrome, Safari, Firefox) apply different default user-agent stylesheets (different margins on <body>, differing heading sizes, list bullets).
- CSS Reset (Eric Meyer Reset - 2007): Wipes out all browser styles aggressively (
margin: 0; padding: 0; border: 0; font-size: 100%). Requires styling every single element from scratch. - Normalize.css (Nicolas Gallagher): Preserves useful browser defaults (like form styles) and normalizes bugs and cross-browser inconsistencies rather than destroying all styles.
- Modern CSS Resets (Andy Bell / Josh Comeau - 2024+): Minimal and intentional. Applies
box-sizing: border-box, removes body margin, improves image defaults (display: block; max-width: 100%), and isolates stacking contexts.