What is a CSS reset?

Every browser has its own default styles, like margins on body and sizes of headings. A CSS reset removes them, so you start from the same base in all browsers.

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

Normalize.css is a softer idea: it keeps the useful defaults and only fixes the differences between browsers. Modern projects often use a small reset with box-sizing: border-box. See CSS Box Model.


Learn more about the similar topics:
Tutorials
CSS Introduction
CSS Inclusion
CSS Syntax
CSS Comments
CSS Variables
List of common CSS Properties
Exercises & Assignments
No Content Found.
Interview Questions & Answers
Explain the various ways to apply CSS styles to a web page
What are the advantages of CSS?
What is CSS?
What is the difference between link and @import in CSS?
What are CSS variables?
What is a CSS reset?