How to add custom html inside form I need to put some custom html tags and code inside the form elements am creating using form api .  I defined a fieldset and need to come the html under this fieldset , code sample :

  $general_wb_vars = array(
        'wb_debug'=&gt;array('type'=&gt;'select','values'=&gt;'ERR,OFF','default_value'=&gt;'OFF','label'=&gt;'Debug','description'=&gt;''),
        'wb_cache'=&gt;array('type'=&gt;'radio','values'=&gt;'Yes,No','default_value'=&gt;'No','label'=&gt;'Cache','description'=&gt;''),
        'wb_ip'=&gt;array('type'=&gt;'textfield','values'=&gt;'','default_value'=&gt;'192.168.1.1','label'=&gt;'IP','description'=&gt;'')
        );
        $numofrepeat = 4;
        if($form_id=='my-form-id'){
                $form['fieldsetm'] = array('#type' =&gt; 'fieldset',
                                         '#title' =&gt; t('Weblogic configurations'),
                                         '#weight' =&gt; 10,
                                );

                for($i=1;$i&lt;=$numofrepeat;$i++){
                foreach($general_wb_vars as $id =&gt; $setts){
                   $form['fieldsetm']['field_p_'.$id.'['.$i.'][value]'] = array('#type' =&gt; $setts['type'],
                                        '#title' =&gt; t($setts['label']),
                                        '#default_value' =&gt; $setts['default_value'],
                                        '#description' =&gt; t($setts['description']),
                                        '#attributes' =&gt; array('id'=&gt;$id.$i),

                                  );
                                if($setts['type']=='select'){
                                        $form['fieldsetm']['field_p_'.$id.'['.$i.'][value]']['#options'] = explode(',',$setts['values']);                                      }
                                if($setts['type']=='radio')
                                        $form['filedsetm']['field_p_'.$id.'['.$i.'][value]']['#values'] = explode(',',$setts['values']);
                                        $form['fieldsetm']['some_markup'] = array(
                                           '#type' =&gt; 'item',
                                           '#markup' =&gt; '---------------------------------------------------------------------',
                                         );
                                }                               
                }
You're looking at Drupal 7 form api reference perhaps. For drupal 6 according to the form api you just need to put your HTML string in #value as the default D6 #type is markup