CSS Output Prediction Easy +10 XP
Inheritance
Does the <p> inherit the parent color?
CSSRead-only
.parent { color: blue; }
.parent p { /* no color set */ }What is the output?
Show answer and explanation
Answer: Yes — color is inherited
The 'color' property is inherited by default. Child elements receive the parent's text color unless overridden.
Hint: Some CSS properties inherit, others don't.
What this challenge tests
Output Prediction in CSS: inheritance, color.