html format question?

Hello. I have been searching trying to find the answer with no luck. Hoping someone can help. I am trying to change the color of text within a footer in html. I am able to change all the text color, but is it possible to change each word in a sentance to a different color?
 
Put each word in a <span style="color: #RRGGBB"> tag.

<span style="color: red">The</span> <span style="color: #00ff00">quick</span> ...

You can also use <font color="">, but <font> is a deprecated element and is being phased out. It also makes things more difficult in the future -- with <span> elements, you can assign a CSS class and then change the colors in the style sheet. Swap style sheets, and your entire site will get a new look.
 
Put each word in a <span style="color: #RRGGBB"> tag.

<span style="color: red">The</span> <span style="color: #00ff00">quick</span> ...

You can also use <font color="">, but <font> is a deprecated element and is being phased out. It also makes things more difficult in the future -- with <span> elements, you can assign a CSS class and then change the colors in the style sheet. Swap style sheets, and your entire site will get a new look.
 
Back
Top