change font color in an element js code example Example: js element text color element.style.color = '#f0f';