HTML/CSSBeginner#css#cross-browser

What is a CSS reset or normalize.css and why use one?

Browsers apply different default styles (margins on <p>, list bullets, etc.). A CSS reset strips these defaults entirely to build up from zero; normalize.css instead makes defaults consistent across browsers while preserving useful ones. Both create a predictable starting point.

Example
/* Minimal reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img, picture { max-width: 100%; display: block; }

Related Questions

1
HTML/CSSAdvanced#css#performance

What is critical CSS and how does it improve page performance?

Open
2
HTML/CSSIntermediate#css#performance

What are CSS sprites and why were/are they used?

Open
3
HTML/CSSAdvanced#css#performance

What other CSS performance best practices should you follow?

Open