Monthly Archives: December 2012

CSS in CGI with C

You can easily use CSS while using CGI in C language. Here is a small demo. hello.c file: #include<stdio.h> int main() { printf(“Content-type: text/html\n\n”); printf(“<html><head><link href=\”../mycss.css\” rel=\”stylesheet\” type=\”text/css\”></head>”); printf(“<body><h1>Hello</h1></body>”); printf(“</html>”); return 0; } mycss.css file: body { background-color:#000; } h1 … Continue reading

Posted in Uncategorized | 1 Comment