As Anonymous Monk already pointed out, the answers are all in Html Template CSS and CGI PERL

I would like to comment on your template though, for you have quite a few errors in there (small as it is):

<html> <head> <center><h2>Registration Form</h2></center> <title> Registration</title> <body> <p>my text goes here. </body> </html>

First of all, please, oh please remember to close your tags. head and p aren't, providing you with your next problem, the <center><h2>Registration Form</h2></center> within your head block.

Secondly, if you want to use CSS, you might aswell get rid of the <center> tags... (h2 { text-align: center; })

Rewritten template:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html> <head> <link rel="stylesheet" type="text/css" href="/path/to/your.css" /> <title>Registration</title> </head> <body> <h2>Registration Form</h2> <p>my text goes here.</p> </body> </html>
--
b10m

All code is usually tested, but rarely trusted.

In reply to Re: html css how to use with cgi perl by b10m
in thread html css how to use with cgi perl by ana711

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.