I'm not exactly sure what it is you're asking so I'll go out on a limb. You apply different colors to elements in HTML and CSS by applying an ID to the element in HTML and then coloring it in the CSS, for example:
<div id="redcolor"><h1>EXAMPLE TEXT</h1></div>
<div id="bluecolor"><h1>EXAMPLE TEXT</h1>/div>
<div id="yellowcolor"><h1>EXAMPLE TEXT</h1></div>
In short, apply an id to your element in the HTML, then apply whatever style you want to that id in the stylesheet.