Checkboxes
Checkboxes are used for Boolean values. They can be used for things that require a yes or no response. Using raw HTML, you create checkboxes by using the INPUT tag with TYPE checkbox as shown in the following line:
<INPUT TYPE=checkbox NAME='want-notification' VALUE='yes' CHECKED>
Using CGI::Form, this is a call to the method checkbox:
$q->checkbox( -name=>'want-notification', -value=>'yes', -checked=>'true' );