How to change font color in html output on C++ ?

Hi,
I need help with my assignment. Basically I have to make an html page and have the output display in a .cgi file.
I am able to change the font and colors in the html page but the output of my CGI file comes out in black font.
I was wondering if anyone knew how to change the color of the font in the output displayed?
