How do I chnage text color in an html table based on the text in the table?

Mark

New member
I want the color of the text to change based on the text in the table. Basically if I type "up" in the table I want it to display as green and if I type "down" I want it to display as red without having to change the color code each time.
 
Back
Top