{"slug": "eric-meyer-s-css-reset-html5", "title": "Eric Meyer's CSS Reset (HTML5)", "summary": "Eric Meyer's CSS Reset (version 2.0, dated January 26, 2011) is a public domain stylesheet that strips default browser styling from HTML elements by setting margins, padding, and borders to zero, and normalizing font sizes and baseline alignment. It also includes specific rules for HTML5 elements to ensure proper display in older browsers, and removes default list styles, quotation marks, and table spacing.", "body_md": "reset.css\n\n      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.\n      \nLearn more about bidirectional Unicode characters\n\n \n    Show hidden characters\n\n/* http://meyerweb.com/eric/tools/css/reset/ \n\n   v2.0 | 20110126\n\n   License: none (public domain)\n\n*/\n\nhtml, body, div, span, applet, object, iframe,\n\nh1, h2, h3, h4, h5, h6, p, blockquote, pre,\n\na, abbr, acronym, address, big, cite, code,\n\ndel, dfn, em, img, ins, kbd, q, s, samp,\n\nsmall, strike, strong, sub, sup, tt, var,\n\nb, u, i, center,\n\ndl, dt, dd, ol, ul, li,\n\nfieldset, form, label, legend,\n\ntable, caption, tbody, tfoot, thead, tr, th, td,\n\narticle, aside, canvas, details, embed, \n\nfigure, figcaption, footer, header, hgroup, \n\nmenu, nav, output, ruby, section, summary,\n\ntime, mark, audio, video {\n\n\tmargin: 0;\n\n\tpadding: 0;\n\n\tborder: 0;\n\n\tfont-size: 100%;\n\n\tfont: inherit;\n\n\tvertical-align: baseline;\n\n}\n\n/* HTML5 display-role reset for older browsers */\n\narticle, aside, details, figcaption, figure, \n\nfooter, header, hgroup, menu, nav, section {\n\n\tdisplay: block;\n\n}\n\nbody {\n\n\tline-height: 1;\n\n}\n\nol, ul {\n\n\tlist-style: none;\n\n}\n\nblockquote, q {\n\n\tquotes: none;\n\n}\n\nblockquote:before, blockquote:after,\n\nq:before, q:after {\n\n\tcontent: '';\n\n\tcontent: none;\n\n}\n\ntable {\n\n\tborder-collapse: collapse;\n\n\tborder-spacing: 0;\n\n}", "url": "https://wpnews.pro/news/eric-meyer-s-css-reset-html5", "canonical_source": "https://gist.github.com/rubensanroman/1670441", "published_at": "2012-01-24 14:30:56+00:00", "updated_at": "2026-05-23 15:36:22.366217+00:00", "lang": "en", "topics": ["developer-tools", "open-source"], "entities": ["Eric Meyer", "meyerweb.com"], "alternates": {"html": "https://wpnews.pro/news/eric-meyer-s-css-reset-html5", "markdown": "https://wpnews.pro/news/eric-meyer-s-css-reset-html5.md", "text": "https://wpnews.pro/news/eric-meyer-s-css-reset-html5.txt", "jsonld": "https://wpnews.pro/news/eric-meyer-s-css-reset-html5.jsonld"}}