Home >Web Front-end >CSS Tutorial >CSS Reset
Why reset browser default CSS?
The browser will set the "default settings" for "labels", and the default settings of different browsers are different.
Many times, the browser’s default settings are useless to us developers.
Then, developers need to write overriding css to override the browser’s default settings.
CSS Reset not only "clears the default style", but also sets the "global default style"
How to do it?
Timing of introduction: At the beginning of the project, the reset file should be set. Because if you make changes later in the project, it will affect the whole body.
Introduction position: the first css introduction on the page.
<link rel="stylesheet" type="text/css" href="reset.css"> <link rel="stylesheet" type="text/css" href="xxxx.css"> <link rel="stylesheet" type="text/css" href="yyyy.css">
There is no standard answer to CSS Reset, because different products have different needs, so we should use the Reset method to formulate our own Reset according to our own products. Only the Reset that conforms to our own products is a good Reset.