Exercise:

Add a red color to all previous sibling elements of <h2>.

Hint: Use the prevAll() method.

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