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