Reset style sheet


A reset stylesheet is a collection of CSS rules used to clear the formatting of HTML elements.

Purpose

Each browser has different default settings for styling different HTML elements, often differing from the World Wide Web Consortium recommendations for styling elements. For example, the color for link text and spacing definitions for specific items are defined differently by many browsers by default. These basic details may vary greatly from browser to browser, sometimes even varying between different versions of a browser. These default styles used in combination with the author defined rules may have unforeseen effects on the appearance of the website.
With the help of a style sheet reset, these browser styles can be removed. The styles used by the developer are ideally interpreted consistently by all browsers.

History

The first style sheet resets were released around 2004, and many consisted of resetting the margins and padding of all elements:


However, the first reset style sheet, created in 2004 by Tantek Çelik, included additional features such as setting all font sizes to 1em and removing link underlines and borders.
This process has gradually been refined by various developers, so that only some elements are reset to their basic appearance.

Notable reset style sheets

A CSS reset is a different concept from a CSS framework. A reset style sheet is only used to reset basic formatting. In contrast, a CSS framework, which typically include pre-made style definitions for often-needed UI elements or a grid system, is used to speed up the development process of a website. However, a CSS reset is often part of a CSS framework.