Reset CSS란?
대표적으로 Reset CSS, normalize.css 등이 있는데, HTML Tag의 Style을 재정의하는 CSS Code인데, 철학에 따라 Style을 재정의하는 범위가 다릅니다.
간단하게 살펴보자면, Reset CSS 의 경우에는 대부분의 스타일을 초기화하고, Normalize.css의 경우는 브라우저의 일부 디자인 스타일을 유지합니다.
Reset CSS를 왜 사용해야하는가?
브라우저 별로 HTML Tag에 기본 스타일을 적용하여 브라우저 별로 다른 스타일로 그려지고, 나아가 레이아웃이 깨지는 현상이 발생하기도 하기 때문에, 통일감과 에러를 방지하기 위해 사용합니다.
Reset CSS를 어떻게 사용하는가?
CSS 파일 자체를 import 하거나, CSS 라이브러리의 global CSS로 적용합니다.
- Reset CSS
- The goal of a reset stylesheet is to reduce browser inconsistencies in things like default line heights, margins and font sizes of headings, and so on.
- Normalize.css
- makes browsers render all elements more consistently and in line with modern standards. It precisely targets only the styles that need normalizing.