PDA

View Full Version : print start_html()


DELOCH
08-17-2006, 06:30 PM
I know I can use the function start_html to add meta contents, and such but there is one issue.

I got used to making XHTML 1.0 Transitional 1.0 EN for websites and my Win98 Computer's default is XHTML 1.0 BASIC

How can i use the print start_html(-dtd => "something") when I need 2 parts:

1) -//W3C//DTD XHTML 1.0 Transitional//EN
2) http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd

I really need to know thanks ^_^

note: In Client-side perlscript can I make alert/confirm/prompt?

rwedge
08-20-2006, 09:02 AM
According to the docs the default header when using start_html() is XHTML 1 since version 2.69 .

You can alter the dtd with :$q->default_dtd(
'-//W3C//DTD XHTML 1.0 Strict//EN',
'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd');
print $q->header,
$q->start_html( -dtd=>'yes');

DELOCH
08-23-2006, 03:46 PM
Thanks a lot! this helps ^_^