Re: CGI and CSS question
- From: "Bart Van der Donck" <bart@xxxxxxxxxx>
- Date: 31 Mar 2006 09:22:09 -0800
perlUSER wrote:
The following lines are appearing in the output. I removed these lines
from the html page I have generated and I like what I see.
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
Question is how can I tell my CGI/Perl not to write the above three
liens?
Well uhm, like you said, by removing it from the HTML output :-) The
script will not print anything you don't ask for.
Here is an example that should help you further.
yourfile.pl
#!/usr/bin/perl
print "Content-Type: text/html; charset=iso-8859-1\n\n";
use strict;
use warnings;
use CGI::Carp qw(fatalsToBrowser);
print <<HTML;
<html>
<head>
<meta http-equiv="Content-Type"
content="text/html; charset=iso-8859-1">
<link rel="style***" href="http://www.mysite.com/mystyle.css"
type="text/css" media="all">
</head>
<body>
<a href="http://www.google.com/">Google</a>
</body>
</html>
HTML
This be http://www.mysite.com/mystyle.css
a:link { color:blue; }
a:visited { color:purple; }
a:hover { color:red; }
a:active { color:orange; }
--
Bart
.
- Follow-Ups:
- Re: CGI and CSS question
- From: perlUSER
- Re: CGI and CSS question
- References:
- CGI and CSS question
- From: perlUSER
- Re: CGI and CSS question
- From: Paul Lalli
- Re: CGI and CSS question
- From: perlUSER
- CGI and CSS question
- Prev by Date: Re: A Problem With GD
- Next by Date: Re: sort and keep the latest version
- Previous by thread: Re: CGI and CSS question
- Next by thread: Re: CGI and CSS question
- Index(es):