js change color of text using tag code example Example: js element text color element.style.color = '#f0f';