Lesson 4 CSS Inheritance

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 1

What is Inheritance?

Inheritance is where CSS properties are passed down from parent elements to descendant
elements

Why is inheritance helpful?

Which Properties?

Using Inheritance for Efficiency?

We are going to write our rule below the comment

The paragraph (p) (parent) is red and


the emphasis element (em) (child)
<p>
P { color: red; {
Lorem <em>ipsum</em> dolor
etuer.
</p>

You might also like