Name
start_html
Synopsis
print $query->start_html(['title', 'base',attribute='value'])
Generates <HTML> and <BODY> tags.
titleThe title of the page.
emailThe author’s email address.
baseWhether 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:
keywordsKeywords for this document
copyrightCopyright for this document description
descriptionDescription for this document
attribute=>'value'Specifies an attribute to the
<BODY>tag
-script=>'$script'Specifies a JavaScript script to be embedded within a
<SCRIPT>block.-onLoad=>'$function'Browser should execute specified function upon entering page.
-onUnload=>'$function'Browser should execute specified function upon leaving page.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access