From 99b80dfaf8d416b38640b5b6a6343c9a7c721561 Mon Sep 17 00:00:00 2001 From: Raul Acosta <107330142+racodess@users.noreply.github.com> Date: Sat, 13 Apr 2024 21:41:37 -0400 Subject: [PATCH] Default Styles lesson: Add missing word (#27792) * Fix missing word * Remove unnecessary apostrophe Co-authored-by: MaoShizhong <122839503+MaoShizhong@users.noreply.github.com> --------- Co-authored-by: MaoShizhong <122839503+MaoShizhong@users.noreply.github.com> --- .../intermediate_css_concepts/default_styles.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/intermediate_html_css/intermediate_css_concepts/default_styles.md b/intermediate_html_css/intermediate_css_concepts/default_styles.md index d8e029942d3..01a1430a09b 100644 --- a/intermediate_html_css/intermediate_css_concepts/default_styles.md +++ b/intermediate_html_css/intermediate_css_concepts/default_styles.md @@ -11,11 +11,11 @@ This section contains a general overview of topics that you will learn in this l ### What are default styles and where do they come from? -As you have worked on projects, you likely observed default styles applied to certain elements, such as larger and bolder headings on `h1` elements, and blue, underlined links on `a' elements. There is also a good chance you struggled with things like default margins and padding. These styles are part of the user-agent stylesheets, ensuring basic styling for webpages without CSS. Each browser has it's own set of user-agent stylesheets so the default styles do slightly between browsers. +As you have worked on projects, you likely observed default styles applied to certain elements, such as larger and bolder headings on `h1` elements, and blue, underlined links on `a' elements. There is also a good chance you struggled with things like default margins and padding. These styles are part of the user-agent stylesheets, ensuring basic styling for webpages without CSS. Each browser has its own set of user-agent stylesheets so the default styles do vary slightly between browsers. ### What if I don't like the defaults? -With very few exceptions you can simply write your own CSS rules. The rules you write in your stylesheet have higher precedence than the user-agents rules, and therefore overwrite the defaults. However, there is another option. +With very few exceptions you can simply write your own CSS rules. The rules you write in your stylesheet have higher precedence than the user-agents rules, and therefore overwrite the defaults. However, there is another option. To address inconsistencies across browsers and establish a consistent starting point for styling, some developers started using CSS resets. These resets are stylesheets containing CSS rules aimed at altering or removing the defaults set by user-agent stylesheets. Using them can help achieve consistency, and can provide a clean slate for developers to apply their styles without interference.