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?
Answered By
bdmomin
0 points
N/A
#114913
How to change font color in html output on C++ ?
Hi Henry, regarding to your problem on how to change the text background color and text is simple like this.
#include<iostream.h>
#include<conio.h>
#include<dos.h>
main()
{
   textbackgroundcolor(BLUE);
   textcolor(YELLOW);
  Â
    clrscr();
    cout<<"/n/n/t/t/t HENRY";
  Â
     getch();
    return 0;
}
> if you want to make your text to blink. just add to the code which is textcolor(YELLOW+BLINK);
ok? just try..
*edit: next time please use code tags – 1lacca