how to do a for each for style color in dom code example Example: js element text color element.style.color = '#f0f';