Exercise:
Add a red color to the previous sibling of <h2>.
Hint: Use the prev() method.
Edit This Code:
See Result »
div (parent)
p
span
h2
h3
p
Result:
Show Answer
Correct Code:
div (parent)
p
span
h2
h3
p
Correct Result:
Hide Answer