w3schools js style text color code example Example: js element text color element.style.color = '#f0f';