Why is it necessary to reset the browser?

Well, that is probably not the best title, I know why we need browser resets: because browsers have different default settings.

My question, which was too long to be included in the title:

If everyone needs to use the reset stylesheet in 90% of cases, why does the browser need to set default styles? We will just delete them anyway, right?

+3
source share
6 answers

Since certain rules make sense by default:

  • The table cells have display:table-cell;
  • <b>makes the text bold, <i>makes the text in italics
  • Paragraphs should have a space between them

, , , .

+12

- - html, .

+5

reset. - , .

+1

reset , , / , , CSS.

, .

+1

, , , .

0

basically, it's a way to keep the results as universal as possible by defeating any browser-based rules and omissions before your CSS is applied. http://www.css-reset.com/

See the presentation on this page http://www.maxdesign.com.au/articles/css-reset/

0
source

Source: https://habr.com/ru/post/1746821/


All Articles