Re: first steps with mod_perl

[email protected] (Gunnar Hjalmarsson)
Newsgroups perl.beginners.cgi
Message-ID <[email protected]>
Marek wrote:
> ... how to insert the DTD the right way:
> 
> print start_html(       -title=>'Secrets of the Pyramids',
>                         -author=>'[email protected]',
>                         -base=>'true',
>                         -target=>'_blank',
>                         -meta=>{'keywords'=>'pharaoh secret mummy',
>                         'copyright'=>'copyright 1996 King Tut'},
>                         -style=>{'src'=>'/styles/style1.css'},
>                         -BGCOLOR=>'blue',
>                         -dtd=>[ '-//W3C//DTD XHTML 1.0 Strict//EN',
> 
> 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd' ]
>                 );

But the resulting markup does not validate as XHTML 1.0 Strict, does it?
I'm thinking of the 'target' and 'bgcolor' attributes.

-- 
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.