Find the siblings that precede <dt id="term-2"> up to the preceding <dt> and give them a red background color.
Edit code and click me
Your Result
(Some examples do not work in Google Chrome):
term 1
definition 1-a
definition 1-b
definition 1-c
definition 1-d
term 2
definition 2-a
definition 2-b
definition 2-c
term 3
definition 3-a
definition 3-b
Edit the code above and click to see the result
www.xhtml.co.il
- Try it yourself