Name

start_html

Synopsis

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

Description

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');

Get Perl in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.