I have a web page created by CGI:retty that only works with IE6, but not with IE7, nor with Firefox. I asked for help at HTML/CSS forum (for details, please refer to here). And I was told that the doctype of my web page is WRONG.
Here is the DOCTYPE:
The above code is generated by following perl code:
And I was told that the xml declaration is not needed.
So, is there a way to get rid of the unnecessary XML declaration?
Thank you for your help!
Here is the DOCTYPE:
Code:
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"[URL unfurl="true"]http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">[/URL]
<html xmlns="[URL unfurl="true"]http://www.w3.org/1999/xhtml"[/URL] lang="en-US" xml:lang="en-US">
<head><title>My Title</title><link rel="stylesheet" type="text/css" href="./mystyle.css" /></head>
The above code is generated by following perl code:
Code:
use CGI::Pretty qw( :html3 );
my $q = new CGI::Pretty;
my $html = $q->start_html(-title=>'My Title', -style=>{src=>'./mystyle.css'});
print $html;
And I was told that the xml declaration is not needed.
So, is there a way to get rid of the unnecessary XML declaration?
Thank you for your help!