td div:hover body{ color:#b42803;}
<!DOCTYPE html><html lang="es"><head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title> <style> #parent { color: red; } #child { color: indigo; } </style></head><body> <a id="parent" href="#"> Parent text <span id="child">Child text</span> </a> <script> parent = document.getElementById("parent") child = document.getElementById("child") function change_parent_black() { parent.style.color = "black" } function change_parent_red() { parent.style.color = "red" } child.addEventListener("mouseover", change_parent_black); child.addEventListener("mouseout", change_parent_red) </script></body></html>