---
id: 6489bcd7b7600c818dc297ea
title: The Cascade of CSS Question A
challengeType: 15
dashedName: the-cascade-of-css-question-a
---

# --description--

Sometimes we may have rules that conflict with one another, and we end up with some unexpected results. “But I wanted these paragraphs to be blue, why are they red like these other paragraphs?!” As frustrating as this can be, it’s important to understand that CSS doesn’t just do things against your wishes. CSS only does what we tell it to do. One exception to this is the default styles that are provided by a browser. These default styles vary from browser to browser, and they are why some elements create a large “gap” between themselves and other elements, or why buttons look the way they do, despite us not writing any CSS rules to style them that way.

So if you end up with some unexpected behavior like this it’s either because of these default styles, not understanding how a property works, or not understanding this little thing called the cascade.

The cascade is what determines which rules actually get applied to your HTML. There are different factors that the cascade uses to determine this. We will examine three of these factors, which will hopefully help you avoid those frustrating “I hate CSS” moments.

# --question--
## --text--

Why might you encounter unexpected behavior in CSS?

## --answers--

Due to conflicting rules and unexpected results

---

Due to the browser's default styles

---

Due to a lack of understanding of CSS properties

---

All of the above

## --video-solution--

4
