'Changing Text Color of a database object based on content

I have a very simple header that is populated with information from a database. I work at a school. What I want is if the data field: ~[enrollmentstatus] equals "Transferred Out" then I want to make the text color red. I'm a complete beginner at all this. Here's what I've done so far, and everything works except for the text color issue:

alt="~[text:psx.txt.wildcards.student_detail_header_line.find_me_icon]"></a> &nbsp; ~([01]grade_level) &nbsp; ~([01]student_number) &nbsp; &nbsp; ~([01]track) &nbsp; <label for="~([01]Home_Room)">Home Room:</label> ~([01]Home_Room) &nbsp; <label for="~(u_students_extension.counselor)">Counselor:</label>~(u_students_extension.counselor) &nbsp; &nbsp; &nbsp; ~([01]Team) &nbsp; &nbsp; ~(studschoolabbr;usestudschool) &nbsp; &nbsp; ~[enrollmentstatus] </h2>


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source