Menu
×
×
Correct!
Exercise:Change the color of all <p> elements, that are descendants of <div> elements, to "red". Hint: To select descendants, separate the selectors with space. |
Edit This Code:
x
<html> <head> <style> </style> </head> <body> <div> <p>This is a paragraph inside a div element.</p> <p>This is another paragraph inside a div element.</p> <span><p>This a paragraph inside a span element, inside a div element.</p></span> </div> <p>This is a paragraph, not inside a div element.</p> <p>This is another paragraph, not inside a div element.</p> </body> <!-- Mirrored from www.w3schools.com/css/exercise.asp?filename=exercise_combinators1 by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 05 Jun 2019 13:17:03 GMT --> </html> Result:
|
Correct Code:
xxxxxxxxxx Result:
|