start_html

Team-Fly    

 
Webmaster in a Nutshell, 3rd Edition
By Robert Eckstein, Stephen Spainhour
Table of Contents
Chapter 14.  The CGI.pm Module


start_html

 print $query->start_html(['  title  ', '  email  ', '  base  ', attribute='  value  ']) 

Generates <HTML> and <BODY> tags.

title

The title of the page.

email

The author's email address.

base

Whether to use a <BASE> tag in the header.

attribute= 'value'

Specifies an attribute to the <BODY> tag.

Using named parameters, the syntax is:

 print $query->start_html(-title=>'  title  ',                             -author=>'  email_address  ',                             -base=>'true',                             -xbase=>'  url  ',                             -meta=>{'  metatag1  '=>'  value1  ',                                     '  metatag2  '=>'  value2  '},                             -script=>'  $script  ',                             -onLoad=>'  $function  ',                             -onUnload=>'  $function  ',  attribute  =>'  value  '); 
-title=> 'title'

Specifies the title of the page.

-author=> 'email_address'

Specifies the author's email address.

-xbase=> 'url'

Provides an HREF for the <BASE> tag. Default is the current location.

-meta=> {'metatag1'=>'value1', ... }

Adds arbitrary meta information to the header as a reference to a hash. Valid tags are:

keywords

Keywords for this document.

copyright

Description for this document.

attribute=> 'value'

Specify an attribute to the <BODY> tag.

-script=> '$script'

Specify a JavaScript script to be embedded within a <SCRIPT> block.

-onLoad=> '$function'

Browser should execute the specified function upon entering the page.

-onUnload=> '$function'

Browser should execute the specified function upon leaving the page.


Team-Fly    
Top


Webmaster in a Nutshell
Webmaster in a Nutshell, Third Edition
ISBN: 0596003579
EAN: 2147483647
Year: 2002
Pages: 412

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net