Exercise:
Add a red color to all sibling elements between <h2> and <h6>.
Hint: Use the nextUntil() method.
Edit This Code:
See Result »
div (parent)
p
span
h2
h3
h4
h5
h6
p
Result:
Show Answer
Correct Code:
div (parent)
p
span
h2
h3
h4
h5
h6
p
Correct Result:
Hide Answer