Q:

Chosing the container for a form

I am currently programmatically constructing a form. For that, I used the hook_form() . My form is displayed and all its functionality are good.
The problem is that it is not displayed inside the div container as it normally should be. Anyone knows how to define, maybe as an attribute, the form in this tag?

A:

in hook_form:
$form['first_element'] = array(
  '#prefix' => '<div class="wrapper>',
  '#title' => t('First name'),
  '#type' => 'textfield',
  '#default_value' => '0',
  '#required' => TRUE,
);
$form['last_element'] = array(
  '#suffix' => '</div>',
  '#title' => t('First name'),
  '#type' => 'textfield',
  '#default_value' => '0',
  '#required' => TRUE,
);
return $form

