<div class="element1">Div A</div> <div class="element2">Div B</div> .element1:hover + .element2 { color: red; } HTMLCSSJS RESULT HTML CSS JS CODE HTMLCSSJS RESULT