Exercise:

Add a red color to all ancestors of <span>.

Hint: Use the parents() method.

Edit This Code:
Result:
Correct Code:
Correct Result:
Exercise - © w3schools.com