{"id":2179,"date":"2017-03-25T12:57:00","date_gmt":"2017-03-25T07:27:00","guid":{"rendered":"https:\/\/www.wikitechy.com\/technology\/?p=2179"},"modified":"2017-03-28T15:35:56","modified_gmt":"2017-03-28T10:05:56","slug":"difference-normalize-css-reset-css","status":"publish","type":"post","link":"https:\/\/www.wikitechy.com\/technology\/difference-normalize-css-reset-css\/","title":{"rendered":"CSS -What is the difference between Normalize.css and Reset CSS"},"content":{"rendered":"<h4 id=\"normalize-css\"><span style=\"color: #800000;\"><b>Normalize.css\u00a0 :<\/b><\/span><\/h4>\n<ul>\n<li>Normalize.css is a small CSS file that provides better cross-browser consistency in the default styling of HTML elements.<\/li>\n<li>It&#8217;s a modern, HTML5-ready, alternative to the traditional CSS reset.<\/li>\n<\/ul>\n<h4 id=\"reset-css\"><span style=\"color: #0000ff;\"><b>Reset CSS :<\/b><\/span><\/h4>\n<ul>\n<li>A CSS Reset (or \u201cReset CSS\u201d) is a short, often compressed (minified) set of CSS rules that resets the styling of all HTML elements to a consistent baseline.<\/li>\n<li>In case you didn&#8217;t know, every browser has its own default &#8216;user agent&#8217; stylesheet, that it uses to make unstyled websites appear more legible.<\/li>\n<\/ul>\n[ad type=&#8221;banner&#8221;]\n<h4 id=\"the-difference-between-normalize-css-reset-css\"><span style=\"color: #000000;\"><b>The difference between Normalize.CSS &amp; Reset.CSS :<\/b><\/span><\/h4>\n<h4 id=\"normalize-css-preserves-useful-defaults-rather-than-unstyling-everything\"><span style=\"color: #000000;\"><b>Normalize.css preserves useful defaults rather than &#8220;<\/b><b>unstyling<\/b><b>&#8221; everything.<\/b><\/span><\/h4>\n<ul>\n<li>For example, elements like sup or sub &#8220;just work&#8221; after including normalize.css (and are actually made more robust) whereas they are visually indistinguishable from normal text\u00a0 after including reset .css<\/li>\n<li>So, normalize.css does not impose a visual starting point (homogeny) upon you.<\/li>\n<li>This may not be to everyone&#8217;s taste.<\/li>\n<li>The best thing to do is experiment with both and see which gels with your preferences.<\/li>\n<\/ul>\n<h4 id=\"normalize-css-corrects-some-common-bugs-that-are-out-of-scope-for-reset-css\"><span style=\"color: #000000;\"><b>Normalize.css corrects some common bugs that are out of scope for reset.css.<\/b><\/span><\/h4>\n<ul>\n<li>It has a wider scope than reset.css, and also provides bug fixes for common problems like: display settings for HTML5 elements, the lack of font inheritance by form elements, correcting font-size rendering for pre, SVG overflow in IE9, and the button styling bug in iOS.<\/li>\n<\/ul>\n<h4 id=\"normalize-css-doesnt-clutter-your-dev-tools\"><span style=\"color: #000000;\"><b>Normalize.css doesn&#8217;t clutter your dev tools. <\/b><\/span><\/h4>\n<ul>\n<li>A common irritation when using reset.css is the large inheritance chain that is displayed in browser CSS debugging tools.<\/li>\n<li>This is not such an issue with normalize.css because of the targeted stylings.<\/li>\n<\/ul>\n<h4 id=\"normalize-css-is-more-modular\"><span style=\"color: #000000;\"><b>Normalize.css is more modular. <\/b><\/span><\/h4>\n<ul>\n<li>The project is broken down into relatively independent sections, making it easy for you to potentially remove sections (like the form normalizations) if you\u00a0 know they will never be needed by your website.<\/li>\n<\/ul>\n<h4 id=\"normalize-css-has-better-documentation\"><span style=\"color: #000000;\"><b>Normalize.css has better documentation. <\/b><\/span><\/h4>\n<ul>\n<li>The normalize.css code is documented inline as well as more comprehensively in the GitHub Wiki.<\/li>\n<li>This means you can find out what each line of code is doing, why it was included, what the differences are between browsers, and more easily run your own tests.<\/li>\n<li>The project aims to help educate people on how browsers render elements by default, and make it easier for them to be involved in submitting improvements.<\/li>\n<\/ul>\n[ad type=&#8221;banner&#8221;]\n<h4 id=\"css-resets\"><span style=\"color: #800000;\"><b>CSS resets : <\/b><\/span><\/h4>\n<ul>\n<li>Aim to remove all built-in browser styling.<\/li>\n<li>Standard elements like H1-6, p, strong, em, et cetera end up looking exactly alike, having no decoration at all.<\/li>\n<li>You\u2019re then supposed to add all decoration yourself.<\/li>\n<\/ul>\n<h4 id=\"normalize-css-aims-to-make-built-in-browser-styling-consistent-across-browsers\"><span style=\"color: #000000;\"><b>Normalize CSS aims to make built-in browser styling consistent across browsers.<\/b><\/span><\/h4>\n<ul>\n<li>Elements like H1-6 will appear bold, larger et cetera in a consistent way across browsers.<\/li>\n<li>You\u2019re then supposed to add only the difference in decoration your design needs.<\/li>\n<\/ul>\n<h4 id=\"if-you-are-a-designer\"><span style=\"color: #0000ff;\"><b>If you are a designer:<\/b><\/span><\/h4>\n<ul>\n<li>Follows common conventions for typography cetera, and<\/li>\n<li>Normalize.css\u00a0works for your target audience, then using\u00a0Normalize.CSS\u00a0instead of a CSS reset will make your own CSS smaller and faster to write.<\/li>\n<li>Normalizer is mainly a set of styles, based on what it\u2019s author thought would look good, and make it look consistent across browsers.<\/li>\n<li>Reset basically strips styling from elements so you have more control over the styling of everything.<\/li>\n<\/ul>\n[ad type=&#8221;banner&#8221;]\n","protected":false},"excerpt":{"rendered":"<p>Normalize.css\u00a0 : Normalize.css is a small CSS file that provides better cross-browser consistency in the default styling of HTML elements. It&#8217;s a modern, HTML5-ready, alternative to the traditional CSS reset. Reset CSS : A CSS Reset (or \u201cReset CSS\u201d) is a short, often compressed (minified) set of CSS rules that resets the styling of all [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26],"tags":[4708,4696,4707,4698,4703,4701,4705,4706,4704,4699,4695,4700,4692,4702,4697,4694,4693],"class_list":["post-2179","post","type-post","status-publish","format-standard","hentry","category-css","tag-css-floats","tag-css-reset-vs-normalize-css-learn-the-difference","tag-css-resets","tag-css-reset-or-normalize","tag-describe-bfcblock-formatting-context-and-how-it-works","tag-describe-floats-and-how-they-work","tag-normalize-css-cdn","tag-normalize-css-npm","tag-normalize-css-vs-reset","tag-normalize-vs-reset","tag-normalize-css-vs-reset-css-question-html-css","tag-normalize-css-vs-reset-css-which-one-to-use","tag-reset-vs-normalize-css","tag-what-is-normalize-css","tag-what-is-the-difference-between-normalize-css-and-reset-css","tag-whats-the-difference-between-resetting-and-normalizing-css","tag-whats-the-difference-between-reset-css-and-normalize-css"],"_links":{"self":[{"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/posts\/2179","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/comments?post=2179"}],"version-history":[{"count":0,"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/posts\/2179\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/media?parent=2179"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/categories?post=2179"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/tags?post=2179"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}