how to change element text color with document id selector code example Example: js element text color element.style.color = '#f0f';