css-cascade-2 Flashcards

1
Q

What is inheritance?

A

child elements receive the CSS styling from their parent elements

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Why might CSS include this feature?

A

This cuts down on the amount of code that needs to be written.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Is inheritance a good tool to use for styling? If so, on what occasions?

A

Yes, if you want the same font for many inner texts you wont need to apply this style to these elements individually, just on the parent element.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly